Added support for Ultraleap Unity SDK v5 & v6

This commit is contained in:
Pascal Serrarens 2022-09-29 15:32:09 +02:00
parent 87672ce3ee
commit 02329b3532
3 changed files with 8 additions and 0 deletions

View File

@ -874,6 +874,7 @@ namespace Passer.Humanoid {
public static bool CheckExtensionLeap(Configuration configuration) { public static bool CheckExtensionLeap(Configuration configuration) {
bool available = isLeapAvailable && isLeapSupportAvailable; bool available = isLeapAvailable && isLeapSupportAvailable;
CheckExtension(available, "hLEAP"); CheckExtension(available, "hLEAP");
CheckExtension(isUltraLeapAvailable, "hULTRALEAP");
configuration.leapSupport = available; configuration.leapSupport = available;
return available; return available;
} }
@ -1152,6 +1153,12 @@ namespace Passer.Humanoid {
} }
} }
private static bool isUltraLeapAvailable {
get {
return DoesTypeExist("Leap.Unity.LeapTestProvider") == false;
}
}
private static bool isAstraAvailable { private static bool isAstraAvailable {
get { get {
return DoesTypeExist("Astra.Body"); return DoesTypeExist("Astra.Body");

Binary file not shown.

View File

@ -11,6 +11,7 @@
"PhotonVoice.API", "PhotonVoice.API",
"LeapMotion", "LeapMotion",
"LeapMotion.LeapCSharp", "LeapMotion.LeapCSharp",
"Ultraleap.Tracking.Core",
"SteamVR", "SteamVR",
"Unity.XR.OpenVR" "Unity.XR.OpenVR"
], ],