Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetTime<U>(U, double)

Changes the current local time of the Playable.
Read time 1 minuteLast updated 8 days ago

Definition

SetTime<T>(T, double)

public static void SetTime<U>(this U playable, double value) where U : struct, IPlayable

Parameters

playable

T
The Playable used by this operation.

value

The current time in seconds.

Remarks

Use this method to override the next PlayableGraph evaluation of the current time.
Normally, the PlayableGraph updates the current time between Update and LateUpdate (see Execution Order).
Use this templated extension method on any type that inherits from IPlayable.