NetworkRunner ShutdownAction
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on Fusion.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
NetworkRunner ShutdownAction
Eldirfar
2022-02-09 10:53:02
NetworkRunner shouldn't change the scene on ShutdownAction. My company projects use multiple scenes and calling SceneManager.LoadScene(0) breaks everything.
Comments
Hi @Eldirfar ,
Can you elaborate?
Fusion does not change scenes automatically, it only changes if the Server explicitly makes the change.
--
Ramon Melo
Photon Fusion Team
NetworkRunner is calling SceneManager.LoadScene(0) explicitly. Please look at internal IEnumerator ShutdownWithCleanupCoroutine()
Hi @Eldirfar ,
This specific internal method is used for debugging only purposes, that is why it is associated with the "Shutdown" button on the NetworkRunner component.
In order to shut down your Runner instance, just call the "<runner_insntance>.Shutdown()" method directly.
This will make the Fusion Runner disconnect from the cloud, and shut down, stopping the simulation.
--
Ramon Melo
Photon Fusion Team
Back to top