Scene loaded second time - Photon.Instantiate not working

Dear Forum,

We are currently working on a nice ball game where players kick the ball into a goal with drones.


There are two scenes.

  • LobbyScene
  • ArenaScene

When I first load the ArenaScene from my lobby’s mainmenu, the game works and starts.

the second Time, I call

PhotonNetwork.LoadLevel("ArenaScene");

the Photon.Instantiate commands do not work anymore.
I don’t get any error about it, it just stops at the PhotonNetwork.Instantiate() command.

It seems as if the old scene is still active and the instantiate is being done in some background shadow scene or something… As if the scene would not load 100% cleared or so (?)

what could I have missed when loading the very same scene for the second time ?

Hi there,

I actually fixed it, when you use

InvokeRepeating()

somewhere, then you seem not to be able to load the level a second time, even when you cancelInvoke() at OnDisable().
Don’t know why, but I just replaced the InvokeRepeating with the standard Update() routine and now I can load the level properly again.

maybe that helps someone else… Don’t know if there is a good profiling way to find out if the coroutines are still running?

yours
Max