Namespace UnityEditor.Timeline.Actions
Classes
ActiveInModeAttribute
Define the activeness of an action depending on its timeline mode.
ApplyDefaultUndoAttribute
Use this attribute on action classes (TimelineAction, ClipAction, MarkerAction and TrackAction) to have the default undo behaviour applied.
By default, applying this attribute will record all objects passed to the Execute method with the Undo system, using the name of Action it is applied to.
[ApplyDefaultUndo]
public class SetNameToTypeAction : TrackAction
{
public abstract ActionValidity Validate(IEnumerable<TrackAsset> items)
{
return ActionValidity.Valid;
}
public override bool Execute(IEnumerable<TrackAsset> items)
{
foreach (var track in items)
track.name = track.GetType().name;
return true;
}
}
ClipAction
Base class for a clip action. Inherit from this class to make an action that would react on selected clips after a menu click and/or a key shortcut.
Invoker
Class containing methods to invoke actions.
MarkerAction
Base class for a marker action. Inherit from this class to make an action that would react on selected markers after a menu click and/or a key shortcut.
MenuEntryAttribute
Use this attribute to add a menu item to a context menu. Used to indicate path and priority that are auto added to the menu (examples can be found on https://docs.unity3d.com/ScriptReference/MenuItem.html).
MenuPriority
Priorities for menu item ordering. See MenuEntryAttribute.
MenuPriority.AddItem
MenuPriority.AddTrackMenu
Priorities for Add Tracks menu items.
MenuPriority.ClipActionSection
Priorities for Clip action menu items.
MenuPriority.ClipEditActionSection
Priorities for Clip edition menu items.
MenuPriority.CustomClipActionSection
Custom clip action menu item priority.
MenuPriority.CustomTimelineActionSection
Priorities for custom Timeline action menu items.
MenuPriority.CustomTrackActionSection
Priorities for Custom Track action menu items.
MenuPriority.MarkerActionSection
Priorities for Marker action menu items.
MenuPriority.TimelineActionSection
Priorities for Timeline Action menu items.
MenuPriority.TrackActionSection
Priorities for Track action menu items.
TimelineAction
Base class for a timeline action. Inherit from this class to make an action on a timeline after a menu click and/or a key shortcut.
TimelineShortcutAttribute
Use this attribute to make an action work with the shortcut system.
TrackAction
Base class for a track action. Inherit from this class to make an action that would react on selected tracks after a menu click and/or a key shortcut.
Structs
ActionContext
Action context to be used by actions.
Enums
ActionValidity
Indicates the validity of an action for a given data set.