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... } }
| triggerTime | The time at which the event should be triggered. |
| OnTrigger | Called when the event should be triggered. |
| OnBehaviourDelay | This function is called when the Playable play state is changed to PlayState.Delayed. |
| OnBehaviourPause | This function is called when the Playable play state is changed to PlayState.Paused. |
| OnBehaviourPlay | This function is called when the Playable play state is changed to PlayState.Playing. |
| OnGraphStart | This function is called when the PlayableGraph that owns this PlayableBehaviour starts. |
| OnGraphStop | This function is called when the PlayableGraph that owns this PlayableBehaviour stops. |
| OnPlayableCreate | This function is called when the Playable that owns the PlayableBehaviour is created. |
| OnPlayableDestroy | This function is called when the Playable that owns the PlayableBehaviour is destroyed. |
| PrepareData | This function is called during the PrepareData phase of the PlayableGraph. |
| PrepareFrame | This function is called during the PrepareFrame phase of the PlayableGraph. |
| ProcessFrame | This function is called during the ProcessFrame phase of the PlayableGraph. |