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) {
#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");
}
}