Reconnect and restore state
Options
Hi, I need to make reconnect to the game and restore the game state. But I do not know best place to store information about the game and users( we have 16-32 users). And I have several questions:
1. Whether the properties are cleared after the player is disconnected?
2. If so, what is the best place to store information about the user, with which I can restore his state?
1. Whether the properties are cleared after the player is disconnected?
2. If so, what is the best place to store information about the user, with which I can restore his state?
0
Comments
-
Hi @romanmultan,
Check out these pages:
- Room Persistence Guide
- Turn-based and asynchornous games
Even if these pages are on Photon Realtime area/version of our docs website they are also relevant for PUN/PUN2.
We just want you to be aware that some PUN's features may not work properly when reloading rooms.
Read more about this in PUN's "Turn-based game demo"'s "Do's and Dont's"
0