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>)
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 ModelMeshCollection.Enumerator that can iterate through a ModelMeshCollection.
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