int GetBoneParent (int boneIndex)

Parameters

NameTypeDescription
boneIndex int The bone to look up parent of.

Returns

TypeDescription
int The id of the parent bone, or -1 if given bone has no parent.

Exceptions

TypeWhen
System.ArgumentOutOfRangeException Thrown when given index exceeds range of [0,BoneCount-1]
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.