How to delay server player load scene when creating a session?
Options
SPF
✭
in Photon Bolt
For a client that plays as a server, when after creating a session, it loads the scene right away. Is there a way to delay the scene loading to another time point, for example when the room is joined by other players and the room is full?
Thank you!
Thank you!
0
Comments
-
Hi @SPF ,
The server only loads a new scene if you want to.
When you invoke "BoltMatchmaking.CreateSession(sceneToLoad: map)" passing a Scene name in the "sceneToLoad" param, it will load right away.
You can skip this param, so it doesn't load it, and at a future moment, you can call "BoltNetwork.LoadScene(string scene)" ( https://doc-api.photonengine.com/en/bolt/current/class_photon_1_1_bolt_1_1_bolt_network.html#a5879e1f27195da2282d368fc6ecd18c9 ), in order to load your scene.
--
Ramon Melo
Photon Bolt Team0