Search Unity

Third Party Error with Photon

Discussion in 'Multiplayer' started by Aapje303, Jul 22, 2021.

  1. Aapje303

    Aapje303

    Joined:
    Jul 22, 2021
    Posts:
    1
    Never mind figured it out.

    Hello, I'm following this tutorial:


    And I get an error that I can't seem to solve
    "The name 'roomListContent does not exist in the current context"

    This is the code that doesn't work:



    Code (CSharp):
    1.     public override void OnRoomListUpdate(List<RoomInfo> roomList)
    2.     {
    3.         for(int i = 0; i < roomList.Count; i++)
    4.         {
    5.             Instantiate(roomListItemPrefab, roomListContent).GetCompontent<RoomListItem>().SetUp(roomList[i]);
    6.         }
    7.     }
    8. }
     
    Last edited: Jul 22, 2021