Class SceneManager
- Namespace
- Alis.Core.Ecs.System.Manager.Scene
- Assembly
- Alis.dll
The scene manager base class
public class SceneManager : AManager, IManager, IEnabled, IIdentifier, IRuntime
Inheritance
Implements
Inherited Members
Constructors
SceneManager()
Initializes a new instance of the Alis.Core.Ecs.System.Manager.Scene.SceneManager class
public SceneManager()
Properties
CurrentScene
Gets or sets the value of the current scene
[JsonPropertyName("_CurrentScene_", true, true)]
public Scene CurrentScene { get; set; }
Property Value
Scenes
Gets or sets the value of the scenes
[JsonPropertyName("_Scenes_")]
public List<Scene> Scenes { get; set; }
Property Value
Methods
Add<T>(T)
Adds the component
public void Add<T>(T component) where T : Scene
Parameters
component
T-
The component
Type Parameters
T
-
The
Clear<T>()
Clears this instance
public void Clear<T>() where T : Scene
Type Parameters
T
-
The
Contains<T>()
Describes whether this instance contains
public bool Contains<T>() where T : Scene
Returns
- bool
-
The bool
Type Parameters
T
-
The
Get<T>()
Gets this instance
public T Get<T>() where T : Scene
Returns
- T
-
The
Type Parameters
T
-
The
LoadScene(Scene)
Loads the scene using the specified scene
public void LoadScene(Scene scene)
Parameters
scene
Scene-
The scene
LoadScene(string)
Loads the scene using the specified name
public void LoadScene(string name)
Parameters
name
string-
The name
LoadScene(int)
Loads the scene using the specified index
public void LoadScene(int index)
Parameters
index
int-
The index
OnAfterFixedUpdate()
Ons the after fixed update
public override void OnAfterFixedUpdate()
OnAfterUpdate()
Ons the after update
public override void OnAfterUpdate()
OnAwake()
Ons the awake
public override void OnAwake()
OnBeforeFixedUpdate()
Ons the before fixed update
public override void OnBeforeFixedUpdate()
OnBeforeUpdate()
Ons the before update
public override void OnBeforeUpdate()
OnCalculate()
Ons the calculate
public override void OnCalculate()
OnDestroy()
Ons the destroy
public override void OnDestroy()
OnDisable()
Ons the disable
public override void OnDisable()
OnDispatchEvents()
Ons the dispatch events
public override void OnDispatchEvents()
OnDraw()
Ons the draw
public override void OnDraw()
OnEnable()
Ons the enable
public override void OnEnable()
OnExit()
Ons the exit
public override void OnExit()
OnFixedUpdate()
Ons the fixed update
public override void OnFixedUpdate()
OnGui()
Ons the gui
public override void OnGui()
OnInit()
Ons the init
public override void OnInit()
OnReset()
Ons the reset
public override void OnReset()
OnStart()
Ons the start
public override void OnStart()
OnStop()
Ons the stop
public override void OnStop()
OnUpdate()
Ons the update
public override void OnUpdate()
ReloadScene(Scene)
Reloads the scene using the specified scene
public void ReloadScene(Scene scene)
Parameters
scene
Scene-
The scene
Remove<T>(T)
Removes the component
public void Remove<T>(T component) where T : Scene
Parameters
component
T-
The component
Type Parameters
T
-
The