Esempio n. 1
0
        private static void CreateChildBones(SerializableBone parentBoneContent, AnimationBone parentBone)
        {
            foreach (SerializableBone childBoneContent in parentBoneContent.children)
            {
                AnimationBone childBond = parentBone.CreateChildBone(childBoneContent.name);
                childBond.SetLocalTransform(ref childBoneContent.matrixLocalTransform);

                CreateChildBones(childBoneContent, childBond);
            }
        }
Esempio n. 2
0
 public void AddBone(SerializableBone bone)
 {
     boneList.Add(bone);
     boneIndexByName.Add(bone.name, boneList.Count - 1);
 }
Esempio n. 3
0
 public void AddBone(SerializableBone bone)
 {
     boneList.Add(bone);
     boneIndexByName.Add(bone.name, boneList.Count - 1);
 }