docs.unity3d.com
    Show / Hide Table of Contents

    Class Invoker

    Class containing methods to invoke actions.

    Inheritance
    Object
    Invoker
    Namespace: UnityEditor.Timeline.Actions
    Syntax
    public static class Invoker : object

    Methods

    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
    Boolean

    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
    Boolean

    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
    Boolean

    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
    Boolean

    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
    Boolean

    True if the action has been executed, false otherwise.

    Type Parameters
    Name Description
    T

    Action type to execute.

    InvokeWithSelectedClips<T>()

    Execute a given clip action with the selected clips.

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

    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
    Boolean

    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
    Boolean

    True if the action has been executed, false otherwise.

    Type Parameters
    Name Description
    T

    Action type to execute.

    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