docs.unity3d.com
    Show / Hide Table of Contents

    Struct SceneInstance

    Wrapper for scenes. This is used to allow access to the AsyncOperation and delayed activation.

    Inherited Members
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.ResourceManagement.ResourceProviders
    Syntax
    public struct SceneInstance

    Properties

    Scene

    The scene instance.

    Declaration
    public Scene Scene { get; }
    Property Value
    Type Description
    Scene

    Methods

    Activate()

    Activate the scene via the AsyncOperation.

    Declaration
    [Obsolete("Activate() has been deprecated.  Please use ActivateAsync().")]
    public void Activate()

    ActivateAsync()

    Activate the scene via the AsyncOperation. This is the scene loading AsyncOperation provided by the engine. The documentation for AsyncOperation can be found here: https://docs.unity3d.com/ScriptReference/AsyncOperation.html

    Declaration
    public AsyncOperation ActivateAsync()
    Returns
    Type Description
    AsyncOperation

    The scene load operation.

    Equals(Object)

    The scene instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    GetHashCode()

    The scene instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()
    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