ドキュメント

Unity Engine

Unity Engine

GetInputWeight<U>(U, int)

Returns the weight of the Playable connected at the given input port index.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.