ドキュメント

Unity Engine

Unity Engine

GetLeadTime<U>(U)

Returns the Playable lead time in seconds.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

GetLeadTime<T>(T)

注意
Deprecated. GetLeadTime is obsolete. It was used to trigger PlayableBehaviour.PrepareData as part of the now obsolete Playable Delay functionality. Since this deprecation GetLeadTime has no effect and will be removed in a future version. You can emulate this functionality by implementing your own delay mechanism as part of a PlayableBehaviour
public static float GetLeadTime<U>(this U playable) where U : struct, IPlayable

Parameters

playable

T
The Playable used by this operation.

Returns

Type

Description

float

Remarks

With the deprecation of Playable.SetDelay, this API has no effect anymore and will be removed in a future version.
Use this templated extension method on any type that inherits from IPlayable.