Here is my code loading a scene:
SceneLoadData sld = new SceneLoadData(levelName)
{
ReplaceScenes = ReplaceOption.All
};
InstanceFinder.SceneManager.OnQueueEnd += SceneManager_OnQueueEnd;
InstanceFinder.SceneManager.LoadGlobalScenes(sld);
However, this code ends up starting a queue for unloading the scene, and then another for loading the scene. I have this code:
public void SceneManager_OnQueueStart()
{
Debug.LogError("QUEUE START");
}
public void SceneManager_OnQueueEnd()
{
Debug.Log("QUEUE END");
}
Both "QUEUE START" and "QUEUE END" log twice on the client. Is this a bug or intended?