Method Load
Load(string)
Loads a scene. Throws an exception if unsuccessful.
Declaration
public void Load(string sceneFilename)
Parameters
Type | Name | Description |
---|---|---|
string | sceneFilename | Filename of a scene (with or without path, see remarks. |
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.
Exceptions
Type | Condition |
---|---|
Sdk2Exception | Is thrown if error occurs while loading (for example, it does not exist). |