static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Experimental.Director.AnimationPlayableUtilities o;
         o = new UnityEngine.Experimental.Director.AnimationPlayableUtilities();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 internal static bool SetInputs(AnimationMixerPlayable playable, AnimationClip[] clips)
 {
     if (clips == null)
     {
         throw new NullReferenceException("Parameter clips was null. You need to pass in a valid array of clips.");
     }
     Playables.BeginIgnoreAllocationTracker();
     Playable[] array = new Playable[clips.Length];
     for (int i = 0; i < clips.Length; i++)
     {
         array[i] = AnimationClipPlayable.Create(clips[i]);
         Playable playable2 = array[i];
         Playables.SetPlayableDeleteOnDisconnect(ref playable2, true);
     }
     Playables.EndIgnoreAllocationTracker();
     return(AnimationPlayableUtilities.SetInputsValidated(playable, array, typeof(AnimationMixerPlayable)));
 }
 /// <summary>
 /// <para>Automatically creates an AnimationClipPlayable for each supplied AnimationClip, then sets them as inputs to the mixer.</para>
 /// </summary>
 /// <param name="clips">AnimationClips to be used as inputs.</param>
 /// <returns>
 /// <para>Returns false if the creation of the AnimationClipPlayables failed, or if the connection failed.</para>
 /// </returns>
 public bool SetInputs(AnimationClip[] clips) =>
 AnimationPlayableUtilities.SetInputs(this, clips);
 public unsafe bool RemoveAllInputs()
 {
     return(AnimationPlayableUtilities.RemoveAllInputsValidated(*((AnimationPlayable *)this), base.GetType()));
 }
 public unsafe bool RemoveInput(int index)
 {
     return(AnimationPlayableUtilities.RemoveInputValidated(*((AnimationPlayable *)this), index, base.GetType()));
 }
 public unsafe bool SetInputs(IEnumerable <Playable> sources)
 {
     return(AnimationPlayableUtilities.SetInputsValidated(*((AnimationPlayable *)this), sources, base.GetType()));
 }
 public unsafe bool SetInput(Playable source, int index)
 {
     return(AnimationPlayableUtilities.SetInputValidated(*((AnimationPlayable *)this), source, index, base.GetType()));
 }
 public unsafe int AddInput(Playable input)
 {
     return(AnimationPlayableUtilities.AddInputValidated(*((AnimationPlayable *)this), input, base.GetType()));
 }
Beispiel #9
0
 public bool RemoveAllInputs()
 {
     return(AnimationPlayableUtilities.RemoveAllInputsValidated(this, base.GetType()));
 }
Beispiel #10
0
 public bool RemoveInput(int index)
 {
     return(AnimationPlayableUtilities.RemoveInputValidated(this, index, base.GetType()));
 }
Beispiel #11
0
 public int AddInput(Playable input)
 {
     return(AnimationPlayableUtilities.AddInputValidated(this, input, base.GetType()));
 }
Beispiel #12
0
 public bool SetInputs(AnimationClip[] clips)
 {
     return(AnimationPlayableUtilities.SetInputs(this, clips));
 }
Beispiel #13
0
 /// <summary>
 /// <para>Adds an Playable as an input.</para>
 /// </summary>
 /// <param name="input">The [[Playable] to connect.</param>
 /// <returns>
 /// <para>Returns the index of the port the playable was connected to.</para>
 /// </returns>
 public int AddInput(Playable input) =>
 AnimationPlayableUtilities.AddInputValidated((AnimationPlayable)this, input, base.GetType());
Beispiel #14
0
 public bool SetInputs(IEnumerable <Playable> sources) =>
 AnimationPlayableUtilities.SetInputsValidated((AnimationPlayable)this, sources, base.GetType());
Beispiel #15
0
 /// <summary>
 /// <para>Sets an Playable as an input.</para>
 /// </summary>
 /// <param name="source">Playable to be used as input.</param>
 /// <param name="index">Index of the input.</param>
 /// <returns>
 /// <para>Returns false if the operation could not be completed.</para>
 /// </returns>
 public bool SetInput(Playable source, int index) =>
 AnimationPlayableUtilities.SetInputValidated((AnimationPlayable)this, source, index, base.GetType());
Beispiel #16
0
 /// <summary>
 /// <para>Disconnects all input playables.</para>
 /// </summary>
 /// <returns>
 /// <para>Returns false if the removal fails.</para>
 /// </returns>
 public bool RemoveAllInputs() =>
 AnimationPlayableUtilities.RemoveAllInputsValidated((AnimationPlayable)this, base.GetType());