Version: 2018.1

EventPlayable

class in UnityEngine.Timeline

/

Inherits from:Playables.PlayableBehaviour

Switch to Manual

Description

Base class for all user-defined event playables.

Use this class to execute code at a specific time.

using UnityEngine.Timeline;

class MyEventPlayable : EventPlayable { public override void OnTrigger() { //Do your stuff... } }

Variables

triggerTimeThe time at which the event should be triggered.

Public Functions

OnTriggerCalled when the event should be triggered.

Inherited members

Public Functions

OnBehaviourDelayThis function is called when the Playable play state is changed to PlayState.Delayed.
OnBehaviourPauseThis function is called when the Playable play state is changed to PlayState.Paused.
OnBehaviourPlayThis function is called when the Playable play state is changed to PlayState.Playing.
OnGraphStartThis function is called when the PlayableGraph that owns this PlayableBehaviour starts.
OnGraphStopThis function is called when the PlayableGraph that owns this PlayableBehaviour stops.
OnPlayableCreateThis function is called when the Playable that owns the PlayableBehaviour is created.
OnPlayableDestroyThis function is called when the Playable that owns the PlayableBehaviour is destroyed.
PrepareDataThis function is called during the PrepareData phase of the PlayableGraph.
PrepareFrameThis function is called during the PrepareFrame phase of the PlayableGraph.
ProcessFrameThis function is called during the ProcessFrame phase of the PlayableGraph.