LocalClientLoadScene

This will load a scene for the local player only. It will not load the scene for all clients across the network. This does not effect the currently "active" scene. Place this component in a part of your UI or a object you can enable/disable on the fly. This also offers the ability to just sit there and do nothing until you call it via a button or some other type of trigger.

Public Functions

Function Description
void LoadTargetScene(string sceneName, bool unloadScene) Will load the scene name and optionally unload the scene of the object holding this component.
void LoadTargetScene(bool unloadScene = true) Will load the sceneToLoad and optionally unload the scene of the object holding this component.
void LoadTargetScene() Will load the sceneToLoad and unload the scene this gameobject is in based on the unloadThisScene option.

Note: This can optionally trigger the LoadTargetScene() automatically when entering a trigger if you have selected for this to do so.

See Also

  • LocalClientUnloadScenes