- Home /
Networking: Keep room alive without active players
What is the simplest way to keep a room persistent (even without active players) in unity networking? I need a way to store multiple gameObjects which have a trail component. I also need to sync various int and floats over the server.
I have looked at Photon Turnbased and Async
https://doc.photonengine.com/en-us/realtime/current/tutorials/async-and-turnbased
The problem is that I was unable to find any documentation.
I have looked at Firebase but it seems difficult and impractical for my application.
Would it be practical to get a Raspberry Pi or something to that extend and have it always be on?
Hi,
are you looking for a solution with UNet or PUN?
When using PUN you can set up the EmptyRoomTtl value which keeps an empty room alive for a certain amount of time. EmptyRoomTtl is set with the RoomOptions which you use when actually creating the room. However keeping a room alive forever is not recommended. For persistency you might want to take a look at Webhooks which gives you the option to persist player and game data.
Your answer
Follow this Question
Related Questions
Why does Photon find a room so quick! 1 Answer
Setting up a GUI System for room selection , Multiplayer (Photon/Unet) 1 Answer
Callback for DNS entry error using Photon Networking 0 Answers
Is it possible to select one scene out of given option and make it public for others to join ? 0 Answers
Unity networking tutorial? 6 Answers