docs.unity3d.com
    Show / Hide Table of Contents

    Struct ActionContext

    Action context to be used by actions.

    Namespace: UnityEditor.Timeline.Actions
    Syntax
    public struct ActionContext

    Fields

    director

    The PlayableDirector that is used to play the current Timeline asset.

    Declaration
    public PlayableDirector director
    Field Value
    Type Description
    PlayableDirector

    invocationTime

    Time based on the position of the cursor on the timeline (in seconds). null if the time is not available (in case of a shortcut for example).

    Declaration
    public double? invocationTime
    Field Value
    Type Description
    Nullable<Double>

    timeline

    The Timeline asset that is currently opened in the Timeline window.

    Declaration
    public TimelineAsset timeline
    Field Value
    Type Description
    TimelineAsset

    Properties

    clips

    Clips that will be used by the actions.

    Declaration
    public IEnumerable<TimelineClip> clips { get; set; }
    Property Value
    Type Description
    IEnumerable<TimelineClip>

    markers

    Markers that will be used by the actions.

    Declaration
    public IEnumerable<IMarker> markers { get; set; }
    Property Value
    Type Description
    IEnumerable<IMarker>

    tracks

    Tracks that will be used by the actions.

    Declaration
    public IEnumerable<TrackAsset> tracks { get; set; }
    Property Value
    Type Description
    IEnumerable<TrackAsset>

    Extension Methods

    Invoker.Invoke<T>(ActionContext)

    See Also

    Invoker
    TimelineAction
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023