Skip to main content

Unity.Netcode.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: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public delegate bool VerifySceneBeforeLoadingDelegateHandler(int sceneIndex, string sceneName, LoadSceneMode loadSceneMode);
Parameters#
TypeNameDescription
System.Int32*sceneIndexBuild Settings Scenes in Build List index of the scene
System.String*sceneNameName of the scene
LoadSceneMode*loadSceneModeLoadSceneMode the scene is going to be loaded
Returns#
TypeDescription
System.Booleantrue (valid) or false (not valid)