Switch host without migration or call a HostMigrationToken manually (FUSION)

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.

Switch host without migration or call a HostMigrationToken manually (FUSION)

Lele
2023-01-23 13:41:38

Hello, I have a scene with 4 players, each one can lose and quit at a different time from the others, so in each game, the host can potentially migrate up to 3 times, this becomes very invasive for a mobile game with matches of a maximum of 2 minutes, so I would like to ask if it is possible to switch hosts without migrating when the host is still in the room (like PhotonNetwork.SetMasterClient(PhotonNetwork.MasterClient.GetNext()); from Photon PUN).

or call a Host Migration Token manually, when you want to exit, so you don't have to waste the time that has passed since the last time it was called.

Thanks so much.

Comments

Back to top