Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetInputWeight

Changes the weight of the Playable connected to the current Playable.
Read time 1 minuteLast updated 6 days ago

Definition

SetInputWeight<T>(T, int, float)

Changes the weight of the Playable connected to the current Playable.
public static void SetInputWeight<U>(this U playable, int inputIndex, float weight) where U : struct, IPlayable

Parameters

playable

T
The Playable used by this operation.

inputIndex


weight

The weight. Should be between 0 and 1.

Remarks

Use this templated extension method on any type that inherits from IPlayable.

SetInputWeight<T, U>(T, T, float)

Changes the weight of the Playable connected to the current Playable.
public static void SetInputWeight<U, V>(this U playable, V input, float weight) where U : struct, IPlayable where V : struct, IPlayable

Parameters

playable

T
The Playable used by this operation.

input

T
The connected Playable to change.

weight

The weight. Should be between 0 and 1.

Remarks

Use this templated extension method on any type that inherits from IPlayable.