Пример #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);
            }
        }
Пример #2
0
 public void AddBone(SerializableBone bone)
 {
     boneList.Add(bone);
     boneIndexByName.Add(bone.name, boneList.Count - 1);
 }
Пример #3
0
 public void AddBone(SerializableBone bone)
 {
     boneList.Add(bone);
     boneIndexByName.Add(bone.name, boneList.Count - 1);
 }