VisualizeRooms
Jump To Parameters
Jump To Function Definitions
Parameter Definitions
Select the parameter name from below to jump directly to it on this page.
autoUpate
canDisplaySessionRooms
debugging
filterRooms
onlyDisplaySessionRooms
parentObj
roomButton
autoUpate
Watch for any room changes and auto update this list.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | bool | false |
canDisplaySessionRooms
If this is true it will display each sub photon room as part of the session. Basically each Unity”
scene that a connected player is in.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | bool | false |
debugging
Enable this if you want to have verbose logging to the console. Meant for debugging purposes.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | bool | false |
filterRooms
If this has any value in it that means if the photom room doesn’t have this value int it will not be”
displayed.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | string | ”” |
onlyDisplaySessionRooms
If this is true it will only display the master session room. As in any photom room with an ‘_’ in”
the name will not be displayed.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | string | ”” |
parentObj
The gameobject that will act as the parent. Will replace all child objects according to results.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | Transform | null |
roomButton
Each room found will spawn this as a child of the parentObj.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | GameObject | null |
Function Definitions
Select the function name from below to jump directly to it on this page.
GenerateRoomButton
GetRoomListFromUI
ManullayUpdateList
RefreshList
SetFilter
Update
WaitForChange
WaitForListChange
protected virtual void GenerateRoomButton(string roomName, RoomInfo roomInfo)
Sets the room button values based on the room info. Also makes sure its set properly as a child object and its scale is correct.
| Expose Value | Overrideable | Returns |
|---|---|---|
| protected | True | Does not return anything |
| Parameter Name | Description |
|---|---|
| roomName | string type, the name of the room to display |
| roomInfo | RoomInfo type, the information used to join the room if this is clicked |
public virtual void GetRoomListFromUI()
Dynamically gets the room list that is saved in the
UICoreLogiccomponent and callsRefreshListwith this new list.
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | True | Does not return anything |
No parameters
public virtual void ManullayUpdateList(Dictionary<string, RoomInfo> roomList)
Calls the to set the list of rooms to be displayed manually.
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | True | Does not return anything |
| Parameter Name | Description |
|---|---|
| roomList | Dictionary<string, RoomInfo> type, a list of rooms to be displayed |
protected virtual void RefreshList()
Destroys all child objects first then loops through all found rooms and spawns a new child object for each found room that matches the set criteria.
| Expose Value | Overrideable | Returns |
|---|---|---|
| protected | True | Does not return anything |
No parameters
public virtual void SetFilter(string filter)
Sets the
filterRoomsparameter value to be whatever you pass in. Then calls theWaitForListChangefunction.
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | True | Does not return anything |
| Parameter Name | Description |
|---|---|
| filter | string type, the value that the room names must have |
protected virtual void Update()
If the previous count of the number of rooms is different it will call the
GetRoomListFromUIfunction.
| Expose Value | Overrideable | Returns |
|---|---|---|
| protected | True | Does not return anything |
No parameters
protected virtual IEnumerator WaitForChange()
Waits until the
UICoreLogic’s room list is greater than zero. As soon as it is it calls theGetRoomListFromUIfunction.
| Expose Value | Overrideable | Returns |
|---|---|---|
| protected | True |
No parameters
public virtual void WaitForListChange()
Calls the
WaitForChangeIEnumerator
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | True | Does not return anything |
No parameters