기술 자료

Unity Engine

Unity Engine

GetInputWeight<U>(U, int)

Returns the weight of the Playable connected at the given input port index.
읽는 시간 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.