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

public static void SetInputWeight(U playable, int inputIndex, float weight);
public static void SetInputWeight(U playable, V input, float weight);

Parameters

playableThe Playable used by this operation.
inputThe connected Playable to change.
weightThe weight. Should be between 0 and 1.

Description

Changes the weight of the Playable connected to the current Playable.

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