Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetInputWeight<U>(U, int)

Returns the weight of the Playable connected at the given input port index.
Read time 1 minuteLast updated 6 days ago

Definition

GetInputWeight<T>(T, int)

public static float GetInputWeight<U>(this U playable, int inputIndex) where U : struct, IPlayable

Parameters

playable

T
The Playable used by this operation.

inputIndex

The port index.

Returns

Type

Description

floatThe current weight of the connected Playable.

Remarks

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