docs.unity3d.com
    Show / Hide Table of Contents

    Delegate NetworkSceneManager.VerifySceneBeforeLoadingDelegateHandler

    Delegate declaration for the VerifySceneBeforeLoading handler that provides an additional level of scene loading security and/or validation to assure the scene being loaded is valid scene to be loaded in the LoadSceneMode specified.

    Namespace: Unity.Netcode
    Syntax
    public delegate bool VerifySceneBeforeLoadingDelegateHandler(int sceneIndex, string sceneName, LoadSceneMode loadSceneMode);
    Parameters
    Type Name Description
    Int32 sceneIndex

    Build Settings Scenes in Build List index of the scene

    String sceneName

    Name of the scene

    LoadSceneMode loadSceneMode

    LoadSceneMode the scene is going to be loaded

    Returns
    Type Description
    Boolean

    true (valid) or false (not valid)

    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