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[] sources = new Playable[clips.Length]; for (int i = 0; i < clips.Length; i++) { sources[i] = (Playable)AnimationClipPlayable.Create(clips[i]); Playable target = sources[i]; Playables.SetPlayableDeleteOnDisconnect(ref target, true); } Playables.EndIgnoreAllocationTracker(); return(SetInputsValidated((AnimationPlayable)playable, sources, typeof(AnimationMixerPlayable))); }