KitchenDraw SDK 2
Show / Hide Table of Contents

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

true if no errors occurred while loading, false otherwise.

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.

See Also
Load(string)
In this article
Back to top Generated by DocFX