From 555c5fd2d855cca6afd50b2526de507af0ff96c4 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Wed, 25 May 2022 17:08:17 +0200 Subject: [PATCH] Added check for SteamVR before enabling Vive Tracker support --- Editor/HumanoidControl/Configuration_Editor.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Editor/HumanoidControl/Configuration_Editor.cs b/Editor/HumanoidControl/Configuration_Editor.cs index 69a695e..b916795 100644 --- a/Editor/HumanoidControl/Configuration_Editor.cs +++ b/Editor/HumanoidControl/Configuration_Editor.cs @@ -849,7 +849,7 @@ namespace Passer.Humanoid { public static bool CheckExtensionViveTracker(Configuration configuration) { #if UNITY_STANDALONE_WIN - bool available = isViveTrackerSupportAvailable; + bool available = isSteamVrAvailable && isViveTrackerSupportAvailable; #else bool available = false; #endif @@ -1153,8 +1153,7 @@ namespace Passer.Humanoid { private static bool isSteamVrAvailable { get { - return false; - //return DoesTypeExist("Valve.VR.SteamVR"); + return DoesTypeExist("Valve.VR.SteamVR"); } }