GetTime<U>(U)
Returns the current local time of the Playable.
読み終わるまでの所要時間 1 分最終更新 20日前
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.