AnimationBaker.LoadAnimationDump C# (CSharp) Метод

LoadAnimationDump() публичный Метод

public LoadAnimationDump ( string filePath ) : void
filePath string
Результат void
    public void LoadAnimationDump(string filePath)
    {
        animClip = (AnimationFile) BINS.Load (filePath);
    }

Usage Example

Пример #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);
 }