Photon: How to access customRoomPropertiesForLobby after creating a room?
Hey guys, I want to readout what was written into my customRoomPropertiesForLobby. I have a Set-Function which get called by an InputField:
public void setRoomUrl(string str)
{
roomURL = str;
myRoomProperties[0] = roomURL;
}
Then I have this line:
string[] myRoomProperties = new string[0];
And then I create a Room:
public void PlayButton()
{
RoomOptions roomOptions = new RoomOptions() {
maxPlayers = maxPlayer,
isOpen = true,
isVisible = true,
customRoomPropertiesForLobby = myRoomProperties};
PhotonNetwork.CreateRoom(roomName, roomOptions, TypedLobby.Default);
}
So lets say I tipped www.google.com in it, and it is now in "customRoomPropertiesForLobby" saved. How can I now access the information? I want to get www.google.com out from "customRoomPropertiesForLobby" in another script :/
Your answer
Follow this Question
Related Questions
Referencing a function in a C# script 1 Answer
Photon Networking - How to move all players from game scene to current room scene? 0 Answers
How to limit this particular raycast distance? 3 Answers
C# Photon Networking - Preventing duplicate GameObjects from spawning on Join. 1 Answer
So I am trying to get a multiplayer system working. 0 Answers