Settings - Capi-Metaverse/Template GitHub Wiki
The settings component is an optional component of our application. This component is based on the visual aspect of the actual videogames. It consist on a UI panel with a modulable number of tabs.

We have developed the following tabs:
-
General Settings: In this tab, users can change system values like resolution, sensitivity or the volume.
-
Keys: In this tab, users can change the value of the keys used to play like the interaction key.
-
Friends: In this tab, users can send and accept friends requests to other users.
-
Players: In this tab, users can look at the list of players of their room.
The structure of the Settings prefab is simple, it consist in two GameObjects, the UI and the Settings Controller. The UI consist in a panel with the different tabs that were added. All this tabs can be removed or add new ones.

On the other hand, the Settings Controller controls the movement of the UI Tabs, meanwhile each tab has their own script that contains the logic of that respective tab.
As we said in the introduction, this tabs controls system values like resolution, sensitivity or the volume:
-
Resolution: The resolution is only adjustable in the desktop, the web version is automatically adjusted. It supports all the standard resolutions like 1920x1080, 1280x720…
-
Sensitivity: This slider changes the sensivity of the camera. The information is saved by PlayFab so it updates in realtime.
-
Volume: This slider changes the volume of the music and sounds of the application. Doesn’t change the volume of the users.
This tab lets the user change the different keys of the application. This values are saved by PlayFab, so it updated in realtime too.

-
Interaction: This key is used when a user is facing an interactive object.
-
Change Camera: This key is used when a user is in a Presentation Area so he can change the presentation camera.
-
Wheel: This key is used to open the Emote Wheel.
-
MiniMap: This key is used to open the MiniMap.
-
MuteVoice: This key is used to mute the user mic.
This tab lets users send and accept friends requests to other users. It consist in three panels:
-
Friends Panel: This panel shows the friends that the user has accepted.
-
Send request Panel: This panel lets users send requests to other users.
-
Your requests: This panel shows the requests received.

All the friends logic is linked with PlayFab, so users can see their Friends in realtime when they open this tab.