NetworkRunner ShutdownAction

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

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).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

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

ramonmelo
2022-02-10 15:13:11

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

Eldirfar
2022-02-15 14:44:44

NetworkRunner is calling SceneManager.LoadScene(0) explicitly. Please look at internal IEnumerator ShutdownWithCleanupCoroutine()

ramonmelo
2022-02-23 13:05:30

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