Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Some questions: Custom room and player properties. Sync some info in room. Set Room closed.

$
0
0
Hello! I'm novice in Photon but not novice in Unity.
I have some questions
1.How can I add custom properties to room and get it?
I was trying it:
RoomOptions roomOptions = new RoomOptions();
roomOptions.CustomRoomProperties.Add("test", "simple");
PhotonNetwork.CreateRoom("text okay", roomOptions, null);
Idk works it or no, but problem it's I can't get this key! How I should?

I have a waiting room before starting the game... So there 2 questions:
2. How can I sync some infos. Like a integer, toggle(checkbox).
3. How can I remove lobby from visible after scene loading(GameStarting)

Viewing all articles
Browse latest Browse all 15755

Trending Articles