1
0
mirror of synced 2024-12-18 09:15:54 +01:00
WACVR/Assets/Script/Configuration
2022-12-05 23:15:03 +01: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 Add Custom Enviroment Option (Need to fix Lighting issue)) 2022-12-05 23:15:03 +01:00
Config.cs.meta huge change, new desig wip 2022-10-03 02:04:54 +02:00
ConfigManager.cs Add Custom Enviroment Option (Need to fix Lighting issue)) 2022-12-05 23:15:03 +01: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 Add Custom Enviroment Option (Need to fix Lighting issue)) 2022-12-05 23:15:03 +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 Add Custom Enviroment Option (Need to fix Lighting issue)) 2022-12-05 23:15:03 +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 update new config system 2022-11-05 01:32:17 +01: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)