コード例 #1
0
 private static PMDFormat.BoneList ConvertBoneList(PMXFormat pmx)
 {
     PMDFormat.BoneList result = new PMDFormat.BoneList();
     result.bone_count = (ushort)pmx.bone_list.bone.Length;
     result.bone       = new PMDFormat.Bone[result.bone_count];
     for (int i = 0; i < result.bone_count; i++)
     {
         result.bone[i] = ConvertBone(pmx, i);
     }
     return(result);
 }
コード例 #2
0
 private PMDFormat.BoneList ReadBoneList()
 {
     PMDFormat.BoneList result = new PMDFormat.BoneList();
     result.bone_count = binary_reader_.ReadUInt16();
     //Debug.Log("BoneCount:"+bone_count);
     result.bone = new PMDFormat.Bone[result.bone_count];
     for (int i = 0; i < result.bone_count; i++)
     {
         result.bone[i] = ReadBone();
     }
     return(result);
 }
コード例 #3
0
	private PMDFormat.BoneList ReadBoneList() {
		PMDFormat.BoneList result = new PMDFormat.BoneList();
		result.bone_count = binary_reader_.ReadUInt16();
		//Debug.Log("BoneCount:"+bone_count);
		result.bone = new PMDFormat.Bone[result.bone_count];
		for (int i = 0; i < result.bone_count; i++) {
			result.bone[i] = ReadBone();
		}
		return result;
	}
コード例 #4
0
	private static PMDFormat.BoneList ConvertBoneList(PMXFormat pmx) {
		PMDFormat.BoneList result = new PMDFormat.BoneList();
		result.bone_count = (ushort)pmx.bone_list.bone.Length;
		result.bone = new PMDFormat.Bone[result.bone_count];
		for (int i = 0; i < result.bone_count; i++) {
			result.bone[i] = ConvertBone(pmx, i);
		}
		return result;
	}