Class ModelBoneCollection
Represents a set of bones associated with a model.
public class ModelBoneCollection : ReadOnlyCollection<ModelBone>, IList<ModelBone>, ICollection<ModelBone>, IReadOnlyList<ModelBone>, IReadOnlyCollection<ModelBone>, IEnumerable<ModelBone>, IList, ICollection, IEnumerable
- Inheritance
-
ModelBoneCollection
- Implements
- Inherited Members
Constructors
ModelBoneCollection(IList<ModelBone>)
Initializes a new instance of the ModelBoneCollection class that is a read-only wrapper around the specified list.
public ModelBoneCollection(IList<ModelBone> list)
Parameters
Properties
this[string]
Retrieves a ModelBone from the collection, given the name of the bone.
public ModelBone this[string boneName] { get; }
Parameters
boneName
stringThe name of the bone to retrieve.
Property Value
Methods
GetEnumerator()
Returns a ModelBoneCollection.Enumerator that can iterate through a collection.
public ModelBoneCollection.Enumerator GetEnumerator()
Returns
TryGetValue(string, out ModelBone)
Finds a bone with a given name if it exists in the collection.
public bool TryGetValue(string boneName, out ModelBone value)
Parameters
Returns
- bool
true if the bone was found