Added check for SteamVR before enabling Vive Tracker support

This commit is contained in:
Pascal Serrarens 2022-05-25 17:08:17 +02:00
parent d476b2c269
commit 555c5fd2d8

View File

@ -849,7 +849,7 @@ namespace Passer.Humanoid {
public static bool CheckExtensionViveTracker(Configuration configuration) { public static bool CheckExtensionViveTracker(Configuration configuration) {
#if UNITY_STANDALONE_WIN #if UNITY_STANDALONE_WIN
bool available = isViveTrackerSupportAvailable; bool available = isSteamVrAvailable && isViveTrackerSupportAvailable;
#else #else
bool available = false; bool available = false;
#endif #endif
@ -1153,8 +1153,7 @@ namespace Passer.Humanoid {
private static bool isSteamVrAvailable { private static bool isSteamVrAvailable {
get { get {
return false; return DoesTypeExist("Valve.VR.SteamVR");
//return DoesTypeExist("Valve.VR.SteamVR");
} }
} }