docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TimeNotificationBehaviour

    Use this PlayableBehaviour to send notifications at a given time.

    Inheritance
    object
    PlayableBehaviour
    TimeNotificationBehaviour
    Implements
    IPlayableBehaviour
    ICloneable
    Inherited Members
    PlayableBehaviour.OnGraphStop(Playable)
    PlayableBehaviour.OnPlayableCreate(Playable)
    PlayableBehaviour.OnPlayableDestroy(Playable)
    PlayableBehaviour.OnBehaviourDelay(Playable, FrameData)
    PlayableBehaviour.OnBehaviourPlay(Playable, FrameData)
    PlayableBehaviour.PrepareData(Playable, FrameData)
    PlayableBehaviour.ProcessFrame(Playable, FrameData, object)
    PlayableBehaviour.Clone()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Timeline
    Assembly: Unity.Timeline.dll
    Syntax
    public class TimeNotificationBehaviour : PlayableBehaviour, IPlayableBehaviour, ICloneable

    Properties

    timeSource

    Sets an optional Playable that provides duration and Wrap mode information.

    Declaration
    public Playable timeSource { set; }
    Property Value
    Type Description
    Playable
    Remarks

    timeSource is optional. By default, the duration and Wrap mode will come from the current Playable.

    See Also
    NotificationFlags

    Methods

    AddNotification(double, INotification, NotificationFlags)

    Adds a notification to be sent with flags, at a specific time.

    Declaration
    public void AddNotification(double time, INotification payload, NotificationFlags flags = NotificationFlags.Retroactive)
    Parameters
    Type Name Description
    double time

    The time to send the notification.

    INotification payload

    The notification.

    NotificationFlags flags

    The notification flags that determine the notification behaviour. This parameter is set to Retroactive by default.

    See Also
    NotificationFlags

    Create(PlayableGraph, double, DirectorWrapMode)

    Creates and initializes a ScriptPlayable with a TimeNotificationBehaviour.

    Declaration
    public static ScriptPlayable<TimeNotificationBehaviour> Create(PlayableGraph graph, double duration, DirectorWrapMode loopMode)
    Parameters
    Type Name Description
    PlayableGraph graph

    The playable graph.

    double duration

    The duration of the playable.

    DirectorWrapMode loopMode

    The loop mode of the playable.

    Returns
    Type Description
    ScriptPlayable<TimeNotificationBehaviour>

    A new TimeNotificationBehaviour linked to the PlayableGraph.

    See Also
    NotificationFlags

    OnBehaviourPause(Playable, FrameData)

    This method is called when the Playable play state is changed to PlayState.Paused

    Declaration
    public override void OnBehaviourPause(Playable playable, FrameData info)
    Parameters
    Type Name Description
    Playable playable

    The reference to the playable associated with this PlayableBehaviour.

    FrameData info

    Playable context information such as weight, evaluationType, and so on.

    Overrides
    PlayableBehaviour.OnBehaviourPause(Playable, FrameData)
    See Also
    NotificationFlags

    OnGraphStart(Playable)

    This method is called when the PlayableGraph that owns this PlayableBehaviour starts.

    Declaration
    public override void OnGraphStart(Playable playable)
    Parameters
    Type Name Description
    Playable playable

    The reference to the playable associated with this PlayableBehaviour.

    Overrides
    PlayableBehaviour.OnGraphStart(Playable)
    See Also
    NotificationFlags

    PrepareFrame(Playable, FrameData)

    This method is called during the PrepareFrame phase of the PlayableGraph.

    Declaration
    public override void PrepareFrame(Playable playable, FrameData info)
    Parameters
    Type Name Description
    Playable playable

    The reference to the playable associated with this PlayableBehaviour.

    FrameData info

    Playable context information such as weight, evaluationType, and so on.

    Overrides
    PlayableBehaviour.PrepareFrame(Playable, FrameData)
    Remarks

    Called once before processing starts.

    See Also
    NotificationFlags

    Implements

    IPlayableBehaviour
    ICloneable

    See Also

    NotificationFlags
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)