1
0
mirror of synced 2024-11-27 15:40:51 +01:00
WACVR/Assets/Script/Configuration
2023-08-22 20:01:26 +08:00
..
ButtonSettingManager.cs add additional tab; fix config panel occlusion bug 2022-11-05 20:23:31 +01:00
ButtonSettingManager.cs.meta make button config functionable; better button sound 2022-10-06 22:38:29 +02:00
CaptureSettingManager.cs fix only can select capture desktop; small improvements 2022-11-07 22:31:18 +01:00
CaptureSettingManager.cs.meta huge change, new desig wip 2022-10-03 02:04:54 +02:00
ComponentAutoName.cs update new config system 2022-11-05 01:32:17 +01:00
ComponentAutoName.cs.meta update new config system 2022-11-05 01:32:17 +01:00
Config.cs fix enviroment and config issue again; faster ipc 2023-03-04 03:25:38 +01:00
Config.cs.meta huge change, new desig wip 2022-10-03 02:04:54 +02:00
ConfigManager.cs fix not using serial touch issue 2023-08-22 20:01:26 +08:00
ConfigManager.cs.meta huge change, new desig wip 2022-10-03 02:04:54 +02:00
ConfigPanelComponent.cs fix mercuryio flag issue 2022-11-08 16:34:53 +01:00
ConfigPanelComponent.cs.meta update new config system 2022-11-05 01:32:17 +01:00
Configuration.asmdef il2cpp transition (this commit is still in mono) 2022-11-08 23:43:35 +01:00
Configuration.asmdef.meta HUGE CHANGES !!!!Add Assembly definitions for code!!!! 2022-07-26 15:36:43 +02:00
EnviromentManager.cs fix enviroment and config issue again; faster ipc 2023-03-04 03:25:38 +01:00
EnviromentManager.cs.meta Add Custom Enviroment Option (Need to fix Lighting issue)) 2022-12-05 23:15:03 +01:00
LocomotionStatus.cs huge change, new desig wip 2022-10-03 02:04:54 +02:00
LocomotionStatus.cs.meta huge change, new desig wip 2022-10-03 02:04:54 +02:00
LocomotionToggle.cs huge change, new desig wip 2022-10-03 02:04:54 +02:00
LocomotionToggle.cs.meta huge change, new desig wip 2022-10-03 02:04:54 +02:00
PanelHiderButton.cs huge change, new desig wip 2022-10-03 02:04:54 +02:00
PanelHiderButton.cs.meta huge change, new desig wip 2022-10-03 02:04:54 +02:00
PlayerSettingManager.cs add additional tab; fix config panel occlusion bug 2022-11-05 20:23:31 +01:00
PlayerSettingManager.cs.meta huge change, new desig wip 2022-10-03 02:04:54 +02:00
README.md Add readme for config panel dev 2022-11-07 23:02:42 +01:00
README.md.meta fix mercuryio flag issue 2022-11-08 16:34:53 +01:00
SkyboxSwitcher.cs fix config panel raycast issue 2023-03-06 19:14:10 +01:00
SkyboxSwitcher.cs.meta huge change, new desig wip 2022-10-03 02:04:54 +02:00
SpectatorManager.cs Add Custom Enviroment Option (Need to fix Lighting issue)) 2022-12-05 23:15:03 +01:00
SpectatorManager.cs.meta huge change, new desig wip 2022-10-03 02:04:54 +02:00
StartBatchManager.cs Add Custom Enviroment Option (Need to fix Lighting issue)) 2022-12-05 23:15:03 +01:00
StartBatchManager.cs.meta add auto start .bat function (pls add file path in config.json) 2022-10-16 16:18:17 +02:00
TouchSettingManager.cs Fix TouchSampleRate not working issue; Prepare for new touch system 2023-05-12 18:03:45 +02:00
TouchSettingManager.cs.meta huge change, new desig wip 2022-10-03 02:04:54 +02:00
ValueManager.cs add additional tab; fix config panel occlusion bug 2022-11-05 20:23:31 +01:00
ValueManager.cs.meta huge change, new desig wip 2022-10-03 02:04:54 +02:00
VisibilityManager.cs disable head cube for liv capture and fix texture quality issue 2022-10-16 13:50:38 +02:00
VisibilityManager.cs.meta disable head cube for liv capture and fix texture quality issue 2022-10-16 13:50:38 +02:00

How to add configuration widget

  • First, you will find the widget prefab in the /Asset/Prefab folder.
  • Add any type of widget to the Config Canvans. Just follow other widgets' placement.
  • You can also duplicate the existing widget.
  • Rename the widget. This is very important because everything is based on the widget's name. You can have space in your widget's name but it will automatically be removed in the script. The space is for visual only since JSON does not support key names with space.
  • Then you can use unity's onvalueChanged function in the inspector to control your function or make your own script.
  • For scrip, pls check the CaptureSettingManager.cs, you need to copy and paste the StartUp content and modify it with your need.
  • First use var someWidget = ConfigManager.GetConfigPanelWidget("WidgetNameWithOutSpace"); to get Widget
  • Then use var someDropdown = someWidget.GetComponent<TMP_Dropdown>(); to get the ui component.
  • Then you can use someDropdown.onValueChanged.AddListener( (int value) => {var somethingYouWantToDoWith = value} ); to add something you want to execute when the config is updated.
  • Now you need to add the widget name to Config.cs file. This file is the default config. (This step will not be necessary in the future)