Method TryLoad
TryLoad(string)
Loads a scene. Returns false
if unsuccessful.
Declaration
public bool TryLoad(string sceneFilename)
Parameters
Type | Name | Description |
---|---|---|
string | sceneFilename | Filename of a scene (with or without path, see remarks. |
Returns
Type | Description |
---|---|
bool |
|
Remarks
If the sceneFilename parameter doesn’t include the access path then the scene file is searched in the current scene directory. In this case, the .SCN extension is not mandatory.
Only one scene can be created or loaded in memory at the same time. Such a scene is called the current scene.