crystal.scene.current
Returns the current scene. If a scene transition is currently in progress, this returns the scene being transitioned to.
Usage
crystal.scene.current();
Returns
| Name | Type | Description |
|---|---|---|
current_scene | Scene | The current scene. |
Examples
local my_scene = crystal.Scene:new();
crystal.scene.replace(my_scene);
assert(crystal.scene.current() == my_scene);