Class TimelineSequenceExtensions
This class extends the TimelineSequence asset management with Unity Editor basic capabilities: save, delete, rename, record.
Namespace: UnityEditor.Sequences
Syntax
public static class TimelineSequenceExtensions : object
Methods
Delete(TimelineSequence)
Deletes the specified Sequence from disk. Technically speaking, this method deletes the TimelineAsset associated to the specified Sequence.
Declaration
public static void Delete(this TimelineSequence clip)
Parameters
Type | Name | Description |
---|---|---|
TimelineSequence | clip | The Sequence to delete. |
Record(TimelineSequence, Boolean)
Declaration
public static void Record(this TimelineSequence clip, bool recordAs = false)
Parameters
Type | Name | Description |
---|---|---|
TimelineSequence | clip | The Sequence to record. |
Boolean | recordAs | True to open the RecorderWindow and allow manual parameterization before recording, false to launch a record with current settings. |
Rename(TimelineSequence, String)
Renames the specified Sequence. Technically speaking, this method renames the TimelineAsset associated to the specified Sequence.
Declaration
public static void Rename(this TimelineSequence clip, string newName)
Parameters
Type | Name | Description |
---|---|---|
TimelineSequence | clip | The Sequence to rename. |
String | newName | The new name to use. |
Save(TimelineSequence, String)
Saves the specified Sequence on disk. Technically speaking, this method saves the TimelineAsset associated to the specified Sequence in the folder of the MasterSequence.
Declaration
public static void Save(this TimelineSequence clip, string folder = null)
Parameters
Type | Name | Description |
---|---|---|
TimelineSequence | clip | The Sequence to save. |
String | folder | Optional sub-folders of the Assets/Sequences folder to save the MasterSequence asset to. The method creates the specified sub-folders if they doesn't already exist. |