V
V
VLW VICTOR2021-08-02 08:05:46
Android
VLW VICTOR, 2021-08-02 08:05:46

How to do room creation (and list of rooms) on Photon Unity?

I need to do room selection and room creation on Photon (Unity). I tried everything - there is no normal option. Maybe, you know?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Loli E1ON, 2021-08-02
@E1ON

List of rooms:
https://doc-api.photonengine.com/en/pun/v2/interfa...

public override void OnRoomListUpdate(List<RoomInfo> roomList)
{
  foreach (RoomInfo room in roomList)
  {
    Debug.Log(room.Name);
  }
}

Creating a room:
https://doc-api.photonengine.com/en/pun/v2/class_p...
In general, there is a whole playlist of lessons if you are too lazy to read the documentation:
https://www.youtube.com/watch? v=p8YQpcoaPoU&list=P...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question