public BoneWrapper GetBoneSafe(uint index) { unsafe { Bone *result = Skeleton_GetBone(handle, index); if (result == null) { return(null); } return(new BoneWrapper(this, result)); } }
public BoneWrapper GetBoneSafe(String name) { unsafe { Bone *result = Skeleton_GetBone0(handle, new StringHash(name).Code); if (result == null) { return(null); } return(new BoneWrapper(this, result)); } }
public BoneWrapper GetBoneSafe(uint index) { Runtime.ValidateObject(this); unsafe { Bone *result = Skeleton_GetBone(handle, index); if (result == null) { return(null); } return(new BoneWrapper(this, result)); } }
public BoneWrapper GetBoneSafe(StringHash nameHash) { Runtime.ValidateObject(this); unsafe { Bone *result = Skeleton_GetBone0(handle, nameHash.Code); if (result == null) { return(null); } return(new BoneWrapper(this, result)); } }
public BoneWrapper(object objHolder, Bone *bone) { this.objHolder = objHolder; this.b = bone; }
/// <summary> /// Set start bone. Not supported in node animation mode. Resets any assigned per-bone weights. /// </summary> private void SetStartBone(Bone *bone) { Runtime.ValidateRefCounted(this); AnimationState_SetStartBone(handle, bone); }
internal static extern void AnimationState_SetStartBone(IntPtr handle, Bone *bone);
/// <summary> /// Return parent of the given bone. Return null for root bones. /// </summary> public Bone *GetBoneParent(Bone *bone) { Runtime.ValidateObject(this); return(Skeleton_GetBoneParent(handle, bone)); }
internal static extern Bone *Skeleton_GetBoneParent(IntPtr handle, Bone *bone);
/// <summary> /// Return index of the bone by the bone pointer. Return M_MAX_UNSIGNED if not found. /// </summary> public uint GetBoneIndex(Bone *bone) { Runtime.ValidateObject(this); return(Skeleton_GetBoneIndex0(handle, bone)); }
internal static extern uint Skeleton_GetBoneIndex0(IntPtr handle, Bone *bone);