docs.unity3d.com
    Show / Hide Table of Contents

    Class MasterSequenceExtensions

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

    Inheritance
    Object
    MasterSequenceExtensions
    Namespace: UnityEditor.Sequences
    Syntax
    public static class MasterSequenceExtensions : object

    Methods

    Delete(MasterSequence)

    Deletes the MasterSequence asset from disk. This also deletes the MasterSequence asset folder if it is empty after the operation.

    Declaration
    public static void Delete(this MasterSequence masterSequence)
    Parameters
    Type Name Description
    MasterSequence masterSequence

    The MasterSequence asset to delete.

    Rename(MasterSequence, String)

    Renames the MasterSequence asset on disk.

    Declaration
    public static bool Rename(this MasterSequence masterSequence, string newName)
    Parameters
    Type Name Description
    MasterSequence masterSequence

    The MasterSequence asset to rename.

    String newName

    The new name to use.

    Returns
    Type Description
    Boolean

    True if the rename was a success. False otherwise.

    Save(MasterSequence, String)

    Saves the MasterSequence asset on disk.

    Declaration
    public static void Save(this MasterSequence masterSequence, string folder = null)
    Parameters
    Type Name Description
    MasterSequence masterSequence

    The MasterSequence asset 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. If not specified, the MasterSequence asset is saved in an eponym sub-folder.

    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