Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

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

AnimationMixerPlayable.SetInputs

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public function SetInputs(clips: AnimationClip[]): bool;
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.


public function SetInputs(sources: IEnumerable<Playable>): bool;
public bool SetInputs(IEnumerable<Playable> sources);

Parameters

sources Playable to add as input.

Returns

bool Returns false if any of the connectiona failed.

Description

Add an enumerable of Playables as input.