SetInputs() public method

public SetInputs ( AnimationClip clips ) : bool
clips UnityEngine.AnimationClip
return bool
    void Start()
    {
        mixer = new AnimationMixerPlayable();
        mixer.SetInputs( new []{ clip_0, clip_1 }  );

        GetComponent<Animator>().Play( mixer );
    }
    void Start()
    {
        // Wrap the clip and the controller in playables
        AnimationClipPlayable clip_playable = new AnimationClipPlayable( clip );
        AnimatorControllerPlayable controller_playable = new AnimatorControllerPlayable( anim_controller );
        AnimationMixerPlayable mixer = new AnimationMixerPlayable();
        mixer.SetInputs( new AnimationPlayable[] {clip_playable, controller_playable} );

        // Bind the playable graph to the player
        GetComponent<Animator>().Play( mixer );
    }
Beispiel #3
0
 static public int SetInputs(IntPtr l)
 {
     try {
         UnityEngine.Experimental.Director.AnimationMixerPlayable self = (UnityEngine.Experimental.Director.AnimationMixerPlayable)checkSelf(l);
         UnityEngine.AnimationClip[] a1;
         checkArray(l, 2, out a1);
         var ret = self.SetInputs(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }