docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Invoker

    Class containing methods to invoke actions.

    Inheritance
    object
    Invoker
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Timeline.Actions
    Assembly: Unity.Timeline.Editor.dll
    Syntax
    public static class Invoker

    Methods

    InvokeWithSelectedClips<T>()

    Execute a given clip action with the selected clips.

    Declaration
    public static bool InvokeWithSelectedClips<T>() where T : ClipAction
    Returns
    Type Description
    bool

    True if the action has been executed, false otherwise.

    Type Parameters
    Name Description
    T

    Action type to execute.

    InvokeWithSelectedMarkers<T>()

    Execute a given marker action with the selected markers.

    Declaration
    public static bool InvokeWithSelectedMarkers<T>() where T : MarkerAction
    Returns
    Type Description
    bool

    True if the action has been executed, false otherwise.

    Type Parameters
    Name Description
    T

    Action type to execute.

    InvokeWithSelectedTracks<T>()

    Execute a given track action with the selected tracks.

    Declaration
    public static bool InvokeWithSelectedTracks<T>() where T : TrackAction
    Returns
    Type Description
    bool

    True if the action has been executed, false otherwise.

    Type Parameters
    Name Description
    T

    Action type to execute.

    InvokeWithSelected<T>()

    Execute a given timeline action with the selected clips, tracks and markers.

    Declaration
    public static bool InvokeWithSelected<T>() where T : TimelineAction
    Returns
    Type Description
    bool

    True if the action has been executed, false otherwise.

    Type Parameters
    Name Description
    T

    Action type to execute.

    Invoke<T>(IEnumerable<IMarker>)

    Execute a given action with markers

    Declaration
    public static bool Invoke<T>(this IEnumerable<IMarker> markers) where T : MarkerAction
    Parameters
    Type Name Description
    IEnumerable<IMarker> markers

    Markers that the action will act on.

    Returns
    Type Description
    bool

    True if the action has been executed, false otherwise.

    Type Parameters
    Name Description
    T

    Action type to execute.

    Invoke<T>(IEnumerable<TimelineClip>)

    Execute a given action with clips

    Declaration
    public static bool Invoke<T>(this IEnumerable<TimelineClip> clips) where T : ClipAction
    Parameters
    Type Name Description
    IEnumerable<TimelineClip> clips

    Clips that the action will act on.

    Returns
    Type Description
    bool

    True if the action has been executed, false otherwise.

    Type Parameters
    Name Description
    T

    Action type to execute.

    Invoke<T>(IEnumerable<TrackAsset>)

    Execute a given action with tracks

    Declaration
    public static bool Invoke<T>(this IEnumerable<TrackAsset> tracks) where T : TrackAction
    Parameters
    Type Name Description
    IEnumerable<TrackAsset> tracks

    Tracks that the action will act on.

    Returns
    Type Description
    bool

    True if the action has been executed, false otherwise.

    Type Parameters
    Name Description
    T

    Action type to execute.

    Invoke<T>(ActionContext)

    Execute a given action with a context parameter.

    Declaration
    public static bool Invoke<T>(this ActionContext context) where T : TimelineAction
    Parameters
    Type Name Description
    ActionContext context

    Context for the action.

    Returns
    Type Description
    bool

    True if the action has been executed, false otherwise.

    Type Parameters
    Name Description
    T

    Action type to execute.

    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)