Skip to content

Commit 01c5a90

Browse files
author
lawwong
committed
Fix showing wrong wave hand_tracking/tracker enabled state
1 parent 204e3b3 commit 01c5a90

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/Editor/VRPlatformSettings

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/Editor/VRPlatformSettings/WaveVRSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public override void OnPreferenceGUI()
318318
EditorGUILayout.BeginHorizontal();
319319
#if VIU_WAVEVR_HAND_TRACKING_CHECK
320320
{
321-
var supported = Wave.XR.BuildCheck.CheckIfHandTrackingEnabled.ValidateEnabled() && VRModuleSettings.activateWaveHandTrackingSubmodule;
321+
var supported = EditorPrefs.GetBool("Wave/HandTracking/EnableHandTracking", false) && VRModuleSettings.activateWaveHandTrackingSubmodule;
322322
var shouldSupport = EditorGUILayout.ToggleLeft(new GUIContent(enableWaveHandTrackingTitle), supported);
323323
if (supported != shouldSupport)
324324
{
@@ -370,7 +370,7 @@ public override void OnPreferenceGUI()
370370
EditorGUILayout.BeginHorizontal();
371371
#if VIU_WAVEVR_TRACKER_CHECK
372372
{
373-
var supported = Wave.XR.BuildCheck.CheckIfTrackerEnabled.ValidateEnabled() && VRModuleSettings.activateWaveTrackerSubmodule;
373+
var supported = EditorPrefs.GetBool("Wave/Tracker/EnableTracker", false) && VRModuleSettings.activateWaveTrackerSubmodule;
374374
var shouldSupport = EditorGUILayout.ToggleLeft(new GUIContent(enableWaveTrackerTitle), supported);
375375
if (supported != shouldSupport)
376376
{

0 commit comments

Comments
 (0)