API ReferenceSandbox
BoneCollectionclass
A collection of bones. This could be from a model, or an entity
object→BoneCollection
Constructors1
Showing 1 constructors
protected BoneCollection()
No results match this filter.
Methods2
Showing 2 methods
public Sandbox.BoneCollection.Bone GetBone(string name)
Retrieve a bone by name.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
public bool HasBone(string name)
Whether the model or entity has a given bone by name.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
Returns:
bool—No results match this filter.
Properties2
Showing 2 properties
public virtual System.Collections.Generic.IReadOnlyList`1<Sandbox.BoneCollection.Bone> Sandbox.BoneCollection.AllBones { get; set; }
List of all bones of our object.
public virtual Sandbox.BoneCollection.Bone Sandbox.BoneCollection.Root { get; set; }
Root bone of the model.
No results match this filter.