Class Invoker
Class containing methods to invoke actions.
Inherited Members
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<Timeline |
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<Track |
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 |
---|---|---|
Action |
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. |