Esempio n. 1
0
 /// <summary>
 /// Gets the bone of type and side. If more than one is found, will return the first in the array.
 /// </summary>
 public static Transform GetFirstBoneOfTypeAndSide(BoneType boneType, BoneSide boneSide, Transform[] bones)
 {
     Transform[] b = GetBonesOfTypeAndSide(boneType, boneSide, bones);
     if (b.Length == 0)
     {
         return(null);
     }
     return(b[0]);
 }
Esempio n. 2
0
		/// <summary>
		/// Returns only the bones with the specified BoneSide.
		/// </summary>
		public static Transform[] GetBonesOfSide(BoneSide boneSide, Transform[] bones) {
			Transform[] r = new Transform[0];
			foreach (Transform bone in bones) {
				if (bone != null && GetBoneSide(bone.name) == boneSide) {
					Array.Resize(ref r, r.Length + 1);
					r[r.Length - 1] = bone;
				}
			}
			return r;
		}
Esempio n. 3
0
 /// <summary>
 /// Returns only the bones with the specified BoneSide.
 /// </summary>
 public static Transform[] GetBonesOfSide(BoneSide boneSide, Transform[] bones)
 {
     Transform[] r = new Transform[0];
     foreach (Transform bone in bones)
     {
         if (bone != null && GetBoneSide(bone.name) == boneSide)
         {
             Array.Resize(ref r, r.Length + 1);
             r[r.Length - 1] = bone;
         }
     }
     return(r);
 }
Esempio n. 4
0
 public static BoneSide GetBoneSide(string boneName) => default;                                                                                                                                                               // 0x00000001804B2B60-0x00000001804B2E90
 public static Transform GetBone(Transform[] transforms, BoneType boneType, BoneSide boneSide = BoneSide.Center /* Metadata: 0x00652D1E */, params /* 0x00000001800D4E50-0x00000001800D4E60 */ string[][] namings) => default; // 0x00000001804B33B0-0x00000001804B3440
Esempio n. 5
0
 public static Transform[] GetBonesOfTypeAndSide(BoneType boneType, BoneSide boneSide, Transform[] bones) => default;                                                                                                          // 0x00000001804B35B0-0x00000001804B3760
 public static Transform GetFirstBoneOfTypeAndSide(BoneType boneType, BoneSide boneSide, Transform[] bones) => default;                                                                                                        // 0x00000001804B38D0-0x00000001804B3980
Esempio n. 6
0
        public static Transform[] GetBonesOfSide(BoneSide boneSide, Transform[] bones) => default;                                                                                                                                    // 0x00000001804B3440-0x00000001804B35B0

        public static Transform[] GetBonesOfTypeAndSide(BoneType boneType, BoneSide boneSide, Transform[] bones) => default;                                                                                                          // 0x00000001804B35B0-0x00000001804B3760
Esempio n. 7
0
        public static Transform[] GetBonesOfType(BoneType boneType, Transform[] bones) => default;                                                                                                                                    // 0x00000001804B3760-0x00000001804B38D0

        public static Transform[] GetBonesOfSide(BoneSide boneSide, Transform[] bones) => default;                                                                                                                                    // 0x00000001804B3440-0x00000001804B35B0
Esempio n. 8
0
 /// <summary>
 /// Returns the bone of type and side with additional naming parameters.
 /// </summary>
 public static Transform GetBone(Transform[] transforms, BoneType boneType, BoneSide boneSide = BoneSide.Center, params string[][] namings)
 {
     Transform[] bones = GetBonesOfTypeAndSide(boneType, boneSide, transforms);
     return(GetNamingMatch(bones, namings));
 }
Esempio n. 9
0
 /// <summary>
 /// Gets the bones of type and side.
 /// </summary>
 public static Transform[] GetBonesOfTypeAndSide(BoneType boneType, BoneSide boneSide, Transform[] bones)
 {
     Transform[] bonesOfType = GetBonesOfType(boneType, bones);
     return(GetBonesOfSide(boneSide, bonesOfType));
 }
 /// <summary>
 /// Returns the bone of type and side with additional naming parameters.
 /// </summary>
 public static Transform GetBone(Transform[] transforms, BoneType boneType, BoneSide boneSide = BoneSide.Center, params string[][] namings)
 {
     Transform[] bones = GetBonesOfTypeAndSide(boneType, boneSide, transforms);
     return GetNamingMatch(bones, namings);
 }
 /// <summary>
 /// Gets the bone of type and side. If more than one is found, will return the first in the array.
 /// </summary>
 public static Transform GetFirstBoneOfTypeAndSide(BoneType boneType, BoneSide boneSide, Transform[] bones)
 {
     Transform[] b = GetBonesOfTypeAndSide(boneType, boneSide, bones);
     if (b.Length == 0) return null;
     return b[0];
 }
 /// <summary>
 /// Gets the bones of type and side.
 /// </summary>
 public static Transform[] GetBonesOfTypeAndSide(BoneType boneType, BoneSide boneSide, Transform[] bones)
 {
     Transform[] bonesOfType = GetBonesOfType(boneType, bones);
     return GetBonesOfSide(boneSide, bonesOfType);
 }