Class AxisSceneSwitcher
AxisSceneSwitcher is a class designed to handle scene transitions within a game. It provides functionalities to load different scenes based on specific triggers or conditions, making it easy to switch between various game levels or menus.
Inherited Members
Namespace: Axis.Logic
Assembly: cs.temp.dll.dll
Syntax
public sealed class AxisSceneSwitcher : AxisGameObject
Fields
AsyncLoadScene
Declaration
public bool AsyncLoadScene
Field Value
Type | Description |
---|---|
bool |
LoaderCanvasPrefab
Declaration
public Canvas LoaderCanvasPrefab
Field Value
Type | Description |
---|---|
Canvas |
Methods
ExitScene()
Force transition to the first scene in build scenes, commonly main menu
Declaration
public void ExitScene()
Loading(string)
Executes the process of seamlessly loading another scene, and unloading current
Declaration
public IEnumerator Loading(string scene)
Parameters
Type | Name | Description |
---|---|---|
string | scene | Scene name to load |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
OpenScene(string)
Starts loading another scene associated with specific name
Declaration
public void OpenScene(string scene)
Parameters
Type | Name | Description |
---|---|---|
string | scene | Scene name to load |
ReopenCurrentScene()
Force reloading current scene
Declaration
public void ReopenCurrentScene()