PlayableExtensions.GetTime

Declaration

public static double GetTime(U playable);

Parameters

playable The Playable used by this operation.

Returns

double The current time in seconds.

Description

Returns the current local time of the Playable.

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.


Did you find this page useful? Please give it a rating: