Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AnimationMixerPlayable.SetInputs

Switch to Manual
public bool SetInputs(AnimationClip[] clips);

Parameters

clips AnimationClips to be used as inputs.

Returns

bool Returns false if the creation of the AnimationClipPlayables failed, or if the connection failed.

Description

Automatically creates an AnimationClipPlayable for each supplied AnimationClip, then sets them as inputs to the mixer.

Note: As with AnimationPlayable.SetInputs, this method will automatically disconnect any input playable on the mixer.