- Home /
Scene Change Event
Is there a way to track scene change from one script / object that doesn't get destroyed?
Comment
Answer by Sanggoo · Sep 12, 2017 at 04:20 PM
hi Cmos. you mean like onSceneChange event Something?
If it is correct, try the code below.
SceneManager.sceneLoaded += OnSceneLoaded;
public void OnSceneLoaded(Scene scene, LoadSceneMode mode)
{
}
i hope it will help you!
Thanks! $$anonymous$$ me to this link which helped: https://forum.unity.com/threads/how-to-use-scenemanager-onsceneloaded.399221/