Ejemplo n.º 1
0
 void Start()
 {
     if (action == Action.RECORD_MOVEMENT)
     {
         recorder.root = gameObject;
         // Set it up to record the transforms recursively.
         recorder.BindComponent <Transform>(gameObject, true);
     }
 }
 public void starRecoder()
 {
     if (animTarget == null)
     {
         Debug.LogError("Animation Target is Null");
         return;
     }
     clip           = new AnimationClip();
     _recorder      = new UnityEditor.Experimental.Animations.GameObjectRecorder();
     _recorder.root = animTarget.gameObject;
     _recorder.BindComponent <Transform>(animTarget.gameObject, recursionChild);
     record = true;
     TargetTween(0);
 }