onSceneExit

ScriptBase::onSceneExit

Is executed before a new scene is loaded.

Declaration

virtual void onSceneExit(const std::string& scenePath);

Parameters

Name

Type

Description

scenePath

const std::string&

The path of the previous scene.

Returns

None.

Notes

This function is called before the Entities of the previous scene are destroyed.

This function is generally only useful on persistent Entities.