ConvertDumpToUnityAnimationFile() public method

public ConvertDumpToUnityAnimationFile ( ) : void
return void
コード例 #1
0
 void BakeDump()
 {
     curCharacter = Instantiate(charactersList[selectedCharacter],Vector3.zero,Quaternion.identity) as Transform;
     curCharacter.name = charactersList[selectedCharacter].name;
     curCharacter.gameObject.AddComponent<AnimationBaker>();
     baker = curCharacter.GetComponent<AnimationBaker>();
     baker.LoadAnimationDump(dumpFilePath);
     if(useRootConstraints){
         baker.useRootConstraints = true;
         baker.rootPositionConstraint = rootPositionConstraints;
         baker.rootRotationConstraint = rootRotationConstraints;
         baker.rootScaleConstraint = rootScaleConstraints;
     }
     baker.bakingProperties = bakingProperties;
     baker.ConvertDumpToUnityAnimationFile();
     DestroyImmediate(curCharacter.gameObject);
 }