Interface IModuleSceneCallbacks | Unity Reflect | 1.1.0-preview.6
docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX