docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SceneStateCleanup

    Cleans up scenes in the scene manager.

    Inheritance
    object
    SceneStateCleanup
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Build.Utilities
    Assembly: Unity.ScriptableBuildPipeline.Editor.dll
    Syntax
    public class SceneStateCleanup : IDisposable

    Constructors

    SceneStateCleanup()

    Creates a new scene state cleanup object.

    Declaration
    public SceneStateCleanup()

    Methods

    Dispose()

    Disposes of the scene state cleanup instance.

    Declaration
    public void Dispose()

    Dispose(bool)

    Disposes of the scene state cleanup instance.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    Set to true to reset the scenes list. Set to false to leave the scenes list as is.

    Implements

    IDisposable
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)