Ejemplo n.º 1
0
 void LateUpdate()
 {
     if (action == Action.RECORD_MOVEMENT)
     {
         recorder.TakeSnapshot(Time.deltaTime);
     }
 }
 void LateUpdate()
 {
     if (clip == null)
     {
         return;
     }
     if (record)
     {
         _recorder.TakeSnapshot(Time.deltaTime * Keyframe);
     }
     else if (_recorder.isRecording)
     {
         _recorder.SaveToClip(clip);
         _recorder.ResetRecording();
         UnityEditor.AssetDatabase.CreateAsset(clip, filePath + ".anim");
         Debug.Log("Save Succeed");
     }
 }