Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetTime<U>(U)

Returns the current local time of the Playable.
Read time 1 minuteLast updated 6 days ago

Definition

GetTime<T>(T)

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

Parameters

playable

T
The Playable used by this operation.

Returns

Type

Description

doubleThe 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.