docs.unity.cn
    Show / Hide Table of Contents

    Struct ActionContext

    Action context to be used by actions.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    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
    Generated by DocFX
    on Thursday, April 27, 2023