onSceneChanged [EVENT]

Why ?

If you want to execute something before scene change.

When ?

This function is called when a new scene gonna be load

Prototype

//hpp
void onSceneChanged() override;
//cpp
void KapEngine::MyGame::MyComponent::onSceneChanged() {
    //do what you want
}

Last updated