Class TimelineEditor
Information currently being edited in the Timeline Editor Window.
Namespace: UnityEditor.Timeline
Syntax
public static class TimelineEditor : object
Properties
inspectedAsset
The TimelineAsset currently being shown in the Timeline window.
Declaration
public static TimelineAsset inspectedAsset { get; }
Property Value
| Type | Description |
|---|---|
| TimelineAsset |
inspectedDirector
The PlayableDirector associated with the timeline currently being shown in the Timeline window.
Declaration
public static PlayableDirector inspectedDirector { get; }
Property Value
| Type | Description |
|---|---|
| PlayableDirector |
masterAsset
The TimelineAsset at the root of the hierarchy currently being shown in the Timeline window.
Declaration
public static TimelineAsset masterAsset { get; }
Property Value
| Type | Description |
|---|---|
| TimelineAsset |
masterDirector
The PlayableDirector responsible for the playback of the timeline currently being shown in the Timeline window.
Declaration
public static PlayableDirector masterDirector { get; }
Property Value
| Type | Description |
|---|---|
| PlayableDirector |
playableDirector
The PlayableDirector currently being shown in the Timeline Editor Window.
Declaration
public static PlayableDirector playableDirector { get; }
Property Value
| Type | Description |
|---|---|
| PlayableDirector |
selectedClip
The clip selected in the TimelineEditor.
Declaration
public static TimelineClip selectedClip { get; set; }
Property Value
| Type | Description |
|---|---|
| TimelineClip |
Remarks
If there are multiple clips selected, this property returns the first clip.
selectedClips
The list of clips selected in the TimelineEditor.
Declaration
public static TimelineClip[] selectedClips { get; set; }
Property Value
| Type | Description |
|---|---|
| TimelineClip[] |
timelineAsset
The TimelineAsset currently being shown in the Timeline Editor Window.
Declaration
public static TimelineAsset timelineAsset { get; }
Property Value
| Type | Description |
|---|---|
| TimelineAsset |
Methods
Refresh(RefreshReason)
Refreshes the different components affected by the currently inspected TimelineAsset, based on the RefreshReason provided.
For better performance, it is recommended that you invoke this method once, after you modify the
TimelineAsset. You should also combine reasons using the | operator.
Declaration
public static void Refresh(RefreshReason reason)
Parameters
| Type | Name | Description |
|---|---|---|
| RefreshReason | reason | The reason why a refresh should be performed. |
Remarks
Note: This operation is not synchronous. It is performed during the next GUI loop.