GetDuration<U>(U)
Returns the duration of the Playable.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Playables
- Assembly: UnityEngine.CoreModule
GetDuration<T>(T)
public static double GetDuration<U>(this U playable) where U : struct, IPlayable
Parameters
The Playable used by this operation.
Returns
Type | Description |
|---|---|
| double | The duration in seconds. |
Remarks
Use this templated extension method on any type that inherits from IPlayable.