TScene Class

Definition

The scene manager. Use it to access to current scene and go to an other one.

Delphi
type TScene = class(TObject)
Inheritance
TObject
TScene

Properties

Current

Return current scene on screen. Change it's value to show an other scene.

Methods

GetInstance

Return the instance of current displayed scene.

RegisterScene(TSceneType, T__SceneAncestor)

Register a new scene in the list of available scenes and show it

RegisterScene<T>(TSceneType)

Register a new scene in the list of available scenes and show it

UnRegisterScene(TSceneType)

Unregister a scene from the list (to use only if you remove scenes and free their instance manually)