Class Skeleton
Namespace: ValveResourceFormat.ResourceTypes.ModelAnimation
Assembly: ValveResourceFormat.dll
Represents a model skeleton with bones arranged in a hierarchy.
csharp
public class SkeletonInheritance
Properties
Bones
Gets all bones in the skeleton.
csharp
public Bone[] Bones { get; }Property Value
Bone[]
ClothSimulationRoot
Gets the root bone for cloth simulation, if present.
csharp
public Bone? ClothSimulationRoot { get; }Property Value
Bone?
Roots
Gets the root bones of the skeleton.
csharp
public Bone[] Roots { get; }Property Value
Bone[]
this[uint]
Gets a bone by its StringToken hash.
csharp
public Bone? this[uint hash] { get; }Property Value
Bone?
this[string]
Gets a bone by its name.
csharp
public Bone? this[string name] { get; }Property Value
Bone?
Methods
FromModelData(KVObject)
Creates a skeleton from model data.
csharp
public static Skeleton FromModelData(KVObject modelData)Parameters
modelData KVObject
Returns
FromSkeletonData(KVObject)
Creates a skeleton from skeleton-specific data.
csharp
public static Skeleton FromSkeletonData(KVObject nmSkeleton)Parameters
nmSkeleton KVObject
Returns
GetBoneIndex(uint)
Gets the index of a bone by its StringToken hash, or -1 if not found.
csharp
public int GetBoneIndex(uint hash)Parameters
hash uint
Returns
GetBoneIndex(string)
Gets the index of a bone by its name, or -1 if not found.
csharp
public int GetBoneIndex(string name)Parameters
name string
Returns
See Also
https://s2v.app/SchemaExplorer/cs2/modellib/ModelSkeletonData_t

