GetTime<U>(U)
Returns the current local time of the Playable.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Playables
- Assembly: UnityEngine.CoreModule
GetTime<T>(T)
public static double GetTime<U>(this U playable) where U : struct, IPlayable
Parameters
The Playable used by this operation.
Returns
Type | Description |
|---|---|
| double | The current time in seconds. |
Remarks
The PlayableGraph updates the current time between Update and LateUpdate (refer to Order of execution for event functions),
unless SetTime is called since the last evaluation. In this case, the PlayableGraph will not automatically advance the time.
Use this templated extension method on any type that inherits from IPlayable.