Added check for SteamVR before enabling Vive Tracker support
This commit is contained in:
parent
d476b2c269
commit
555c5fd2d8
@ -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");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user