docs.unity3d.com
    Show / Hide Table of Contents

    Class TimelineSequenceExtensions

    This class extends the TimelineSequence asset management with Unity Editor basic capabilities: save, delete, rename, record.

    Inheritance
    Object
    TimelineSequenceExtensions
    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)

    Records a sequence using its start/end time, fps values and name to set up the Recorder settings.

    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.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023