![]() |
Adventure Creator
1.76.2
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Public Member Functions | |
SceneInfo (int _buildIndex, string _filename, bool _addedToBuildSettings=true) | |
bool | IsCurrentActive () |
Checks if this represents the currently-active main scene More... | |
bool | Open (bool forceReload=false) |
Loads the scene normally. More... | |
void | Add () |
void | Close (bool evenIfCurrent=false) |
AsyncOperation | OpenAsync () |
Loads the scene asynchronously. More... | |
Properties | |
string | Filename [get] |
int | BuildIndex [get] |
A data container for an actual scene in the build.
AC.SceneInfo.SceneInfo | ( | int | _buildIndex, |
string | _filename, | ||
bool | _addedToBuildSettings = true |
||
) |
The default constructor
void AC.SceneInfo.Add | ( | ) |
Adds the scene additively.
void AC.SceneInfo.Close | ( | bool | evenIfCurrent = false | ) |
Closes the scene additively.
bool AC.SceneInfo.IsCurrentActive | ( | ) |
Checks if this represents the currently-active main scene
bool AC.SceneInfo.Open | ( | bool | forceReload = false | ) |
Loads the scene normally.
forceReload | If True, the scene will be re-loaded if it is already open. |
AsyncOperation AC.SceneInfo.OpenAsync | ( | ) |
Loads the scene asynchronously.
|
get |
The scene's build index number
|
get |
The scene's filename, without extension or filepath