Hi,
Any way to tell the on-initial (first-time) OnSceneActivatedN() and the on-destroy (last-time) OnSceneDeactivated()? I need to execute some specialized code only when a Scene is activated for the first time and only when a Scene will be destroyed.
The problem is that OnSceneActivatedN() is invoked when creating a Scene (SceneManager::GoForward(...)) and when getting back to an underlying Scene (SceneManager::GoBackward(...)). Similarly, OnSceneDeactivated() is invoked when a new Scene will cover an underlying Scene and when a Scene will be destroyed.
There is no way to get that information from Scene history, nor there is a way to access SceneTransition (direction) from within OnSceneActivatedN() and OnSceneDeactivated().
Ideas?
Gary