Interface IModuleSceneCallbacks | Unity Reflect | 1.0.0-preview.11
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IModuleSceneCallbacks

    Define this module as one that needs scene management callbacks

    Inherited Members
    IModule.LoadModule()
    IModule.UnloadModule()
    Namespace: Unity.Labs.ModuleLoader
    Syntax
    public interface IModuleSceneCallbacks : IModule

    Methods

    OnActiveSceneChanged(Scene, Scene)

    Called when the active scene changes

    Declaration
    void OnActiveSceneChanged(Scene oldScene, Scene newScene)
    Parameters
    Type Name Description
    Scene oldScene

    The previously active scene

    Scene newScene

    The scene that will become active

    OnSceneLoaded(Scene, LoadSceneMode)

    Called after the scene is loaded, after MonoBehaviour Awake

    Declaration
    void OnSceneLoaded(Scene scene, LoadSceneMode mode)
    Parameters
    Type Name Description
    Scene scene

    The scene that was loaded

    LoadSceneMode mode

    The mode used to load the scene

    OnSceneUnloaded(Scene)

    Called after the scene is unloaded

    Declaration
    void OnSceneUnloaded(Scene scene)
    Parameters
    Type Name Description
    Scene scene

    The scene that was unloaded

    Back to top
    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