why CustomProperties is null?

Options

Hello

Why the result of the room.CustomProperties is null?

I want to access information(map,roomLevel etc...) about each room I specified a roomOptions.CustomRoomProperties in the create room function.

code:

  public override void OnRoomListUpdate(List<RoomInfo> roomList)

  {

    foreach (RoomInfo room in roomList)

    {

      print("roomOptions : " + room.CustomProperties["Scene"]);

      foreach (var value in room.CustomProperties)

      {

        print("value>>> " + value);


      }

    }


Result:

roomOptions : 

UnityEngine.MonoBehaviour:print (object)

Comments