docs.unity3d.com
    目次を表示する/隠す

    Class MasterSequenceExtensions

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

    Inheritance
    Object
    MasterSequenceExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.Sequences
    Syntax
    public static class MasterSequenceExtensions

    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.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)