Class TimelineEditorWindow
Base class of the TimelineWindow.
Inherited Members
Namespace: UnityEditor .Timeline
Assembly: Unity.Timeline.Editor.dll
Syntax
public abstract class TimelineEditorWindow : EditorWindow
Properties
locked
Retrieves and sets the Timeline Window lock state. When disabled (false), the window focus follows the Unity selection.
Declaration
public abstract bool locked { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
When the lock state transitions from true to false, the focused timeline is synchronized with the Unity selection.
navigator
Use this interface to navigate between Timelines and Sub-Timelines. (RO)
Declaration
public abstract TimelineNavigator navigator { get; }
Property Value
Type | Description |
---|---|
Timeline |
playbackControls
Use this interface to control the playback behaviour of the Timeline window. (RO)
Declaration
public abstract TimelinePlaybackControls playbackControls { get; }
Property Value
Type | Description |
---|---|
Timeline |
Methods
ClearTimeline()
Clears the TimelineAsset that is shown in the TimelineWindow.
Declaration
public abstract void ClearTimeline()
Remarks
You can use this method when the TimelineWindow is locked.
SetTimeline(PlayableDirector)
Sets which TimelineAsset is shown in the TimelineWindow based on the PlayableDirector.
Declaration
public abstract void SetTimeline(PlayableDirector director)
Parameters
Type | Name | Description |
---|---|---|
Playable |
director | The PlayableDirector associated with the TimelineAsset to show in the TimelineWindow. Specify a null to clear the TimelineWindow. |
Remarks
You can use this method when the TimelineWindow is locked.
SetTimeline(TimelineAsset)
Sets which TimelineAsset is shown in the TimelineWindow.
Declaration
public abstract void SetTimeline(TimelineAsset sequence)
Parameters
Type | Name | Description |
---|---|---|
Timeline |
sequence | The TimelineAsset to show. Specify a null to clear the TimelineWindow. |
Remarks
When you call this method, the TimelineWindow is placed in asset edit mode. This mode does not support all features. For example, bindings are not available and the timeline cannot be evaluated. You can use this method when the TimelineWindow is locked.