createRoom vs createRoomFromMy
I'm a photon newbie and I'm working on adding multiplayer to a web game. The JS SDK shows two APIs for creating rooms, createRoom and createRoomFromMy. It's not clear to me what the difference is between the two. Can someone explain when it is more appropriate to choose one over the other?
0
Comments
-
Documentation on these methods:
https://doc-api.photonengine.com/en/javascript/current/Photon.LoadBalancing.LoadBalancingClient.html#createRoom
https://doc-api.photonengine.com/en/javascript/current/Photon.LoadBalancing.LoadBalancingClient.html#createRoomFromMy
createRoomFromMy is a helper allowing to create a room on the server from parameters previously set for "my room" (local object existing even if client is disconnected) via setters or used from previous game session.
To avoid confusion, use createRoom and set all required parameters explicitly.0 -
Thanks, Vadim!0