LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

PlayableExtensions.GetInputWeight

public static float GetInputWeight(U playable, int inputIndex);

Parameters

playableThe Playable used by this operation.
inputIndexThe port index.

Returns

float The current weight of the connected Playable.

Description

Returns the weight of the Playable connected at the given input port index.

NOTE: This is a templated extension method that can be used on any type that inherits from IPlayable