Skip to main content

MLAPI.SceneManagement.NetworkSceneManager

Main class for managing network scenes

Inheritance#

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

Inherited Members#

Object.Equals(Object)

Object.Equals(Object, Object)

Object.GetHashCode()

Object.GetType()

Object.MemberwiseClone()

Object.ReferenceEquals(Object, Object)

Object.ToString()

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public static class NetworkSceneManager

Methods#

AddRuntimeSceneName(String, UInt32)#

Adds a scene during runtime. The index is REQUIRED to be unique AND the same across all instances.

Declaration#

public static void AddRuntimeSceneName(string sceneName, uint index)

Parameters#

TypeNameDescription
System.StringsceneNameScene name.
System.UInt32indexIndex.

SwitchScene(String)#

Switches to a scene with a given name. Can only be called from Server

Declaration#

public static SceneSwitchProgress SwitchScene(string sceneName)

Parameters#

TypeNameDescription
System.StringsceneNameThe name of the scene to switch to

Returns#

TypeDescription
SceneSwitchProgress

Events#

OnSceneSwitched#

Event that is invoked when the scene is switched

Declaration#

public static event NetworkSceneManager.SceneSwitchedDelegate OnSceneSwitched

Event Type#

TypeDescription
NetworkSceneManager.SceneSwitchedDelegate

OnSceneSwitchStarted#

Event that is invoked when a local scene switch has started

Declaration#

public static event NetworkSceneManager.SceneSwitchStartedDelegate OnSceneSwitchStarted

Event Type#

TypeDescription
NetworkSceneManager.SceneSwitchStartedDelegate