Skip to main content

Class PlayableDirectorTimeManipulator

Exposes PlayableDirector time manipulation methods for use with UnityEvents in the editor. Useful for triggering timeline control from UI buttons, signals, or other runtime events.

[RequireComponent(typeof(PlayableDirector))]
public class PlayableDirectorTimeManipulator : MonoBehaviour

Inheritance​

Methods​

Rewind(float)​

Moves the timeline backward by a number of seconds.

public void Rewind(float seconds)

Parameters​

NameTypeDescription
secondsfloatThe number of seconds to rewind.

SetTime(float)​

Sets the timeline to a specific time value.

public void SetTime(float time)

Parameters​

NameTypeDescription
timefloatThe time (in seconds) to set the timeline to.

SkipForward(float)​

Advances the timeline forward by a number of seconds.

public void SkipForward(float seconds)

Parameters​

NameTypeDescription
secondsfloatThe number of seconds to skip forward.
  • Methods
    • Rewind(float)
    • SetTime(float)
    • SkipForward(float)