OnSceneLoaded triggers twice

Hi,

My OnSceneLoaded is triggering twice. I think it may be because I am using SceneManager.LoadSceneAsync. Is there a way to prevent this?

I was having the same issue. I realized it was happening because I was setting asyncLoad.allowSceneActivation to false and then calling LoadScene when I was ready to load the level.

Instead of using LoadScene, I just set asyncLoad.allowSceneActivation to true, and then it loaded the level and avoided the issue of being triggered twice.