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.GetInputWeight

public float GetInputWeight(int index);

Parameters

index Index of the input.

Returns

float Weight of the input Playable. Returns -1 if there is no input connected at this input index.

Description

Get the weight of the Playable at a specified index.