Skip to main content

Class TimeMachineClip

A Timeline Clip that contains data for controlling time-based actions in the Timeline, such as fast forwarding, rewinding, or jumping to specific times or markers. The clip holds a TimeMachineBehaviour template, which provides the configuration for the time manipulation actions. At runtime, a copy of this template is injected into the playable graph, where it can be evaluated by the TimeMachineBehaviour and the TimeMachineMixerBehaviour to control the timeline's playback.

[Serializable]
public class TimeMachineClip : PlayableAsset, ITimelineClipAsset

Inheritance​

Implements​

ITimelineClipAsset

Fields​

template​

A TimeMachineBehaviour template associated with this clip. Its properties are exposed in the custom inspector for the clip. The clip will inject a copy of it into the playable graph for as a runtime data container during runtime.

public TimeMachineBehaviour template

Field Value​

TimeMachineBehaviour

Properties​

clipCaps​

This clip does not support any special capabilities.

public ClipCaps clipCaps { get; }

Property Value​

ClipCaps

Methods​

CreatePlayable(PlayableGraph, GameObject)​

Injects a copy of the template?text=template into the PlayableDirector's playable graph.

public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)

Parameters​

NameTypeDescription
graphPlayableGraphThe PlayableDirector's playable graph to inject playables into.
ownerGameObjectThe GameObject that owns the PlayableDirector and initiated the build.

Returns​

Playable — The playable injected into the graph, which contains the template's data.