class
SceneManager
Keeps track of all active SceneObjects and their components.
Keeps track of component state and triggers their events. Updates the transforms of objects as SceneObjects move.
Public
Constructors
SceneManager
Methods
~SceneManager
OnStartUp
Override if you want your module to be notified once it has been constructed and started.
SetMainScene
In a standalone game this represents the scene that is playing.
In editor this represents the primary scene being edited. When creating scene objects and no scene is provided, the object will be created in the main scene. If null main scene is set, new empty main scene will be created internally, as the main scene must always exist.
GetMainScene
GetAllScenes
Returns all live scene instances.
SetMainCameraRenderTarget
Sets the render target that the main camera in the scene (if any) will render its view to.
This generally means the main game window when running standalone, or the Game viewport when running in editor.
NotifySceneInstanceCreated
Notifies the manager that a new scene instance was created.
NotifySceneInstanceDestroyed
Notifies the manager that a scene instance was destroyed.
staticInstance
Returns a reference to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticInstancePtr
Returns a pointer to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticShutDown
Shuts down this module and frees any resources it is using.
staticIsStarted
Query if the module has been started.
Protected
Methods
~Module<T>
OnShutDown
Override if you want your module to be notified just before it is deleted.
staticInstanceInternal
Returns a singleton instance of this module.