ドキュメント

Unity Engine

Unity Engine

GetDuration<U>(U)

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

Definition

GetDuration<T>(T)

public static double GetDuration<U>(this U playable) where U : struct, IPlayable

Parameters

playable

T
The Playable used by this operation.

Returns

Type

Description

doubleThe duration in seconds.

Remarks

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