Room Options not Working with Unity 5.3.0 using PUN v1.24

Options
Here is my piece of Code:
using UnityEngine;
using System.Collections;

public class NetworkManager : MonoBehaviour {
const string VERSION = "v0.0.1";
public string roomName = "VVR";
void Start () {
PhotonNetwork.ConnectUsingSettings (VERSION);
}
void OnJoinedLobby(){
RoomOptions roomOptions = new RoomOptions() { isVisible = false, maxPlayers = 4 };
PhotonNetwork.JoinOrCreateRoom(nameEveryFriendKnows, roomOptions, TypedLobby.Default);
}

}
it gives an error on RoomOpptions.
error CS0246: The type or namespace name `RoomOptions' could not be found. Are you missing a using directive or an assembly reference?
Please guide me.That will be great Favor.

Answers

  • Tobias
    Options
    There was a bug with this type of object initialization in Unity/Mono. We worked around it in newer PUN versions (please update). Alternatively create new RoomOptions, then set each value deliberately.