diff --git a/Runtime/HumanoidControl/Scripts/Extensions/Oculus/OculusDevice.cs b/Runtime/HumanoidControl/Scripts/Extensions/Oculus/OculusDevice.cs index 402e65e..5a7e64e 100644 --- a/Runtime/HumanoidControl/Scripts/Extensions/Oculus/OculusDevice.cs +++ b/Runtime/HumanoidControl/Scripts/Extensions/Oculus/OculusDevice.cs @@ -292,15 +292,16 @@ namespace Passer.Tracking { } public static bool GetSkeleton(bool isLeft, out Skeleton skeleton) { - return GetSkeleton(isLeft ? SkeletonType.HandLeft : SkeletonType.HandRight, out skeleton); - } - public static bool GetSkeleton(SkeletonType skeletonType, out Skeleton skeleton) { + SkeletonType skeletonType = isLeft ? SkeletonType.HandLeft : SkeletonType.HandRight; #if OVRPLUGIN_UNSUPPORTED_PLATFORM - skeleton = default(Skeleton); - return false; + skeleton = default(Skeleton); + return false; #else if (_version >= OVRP_1_44_0.version) { - return OVRP_1_44_0.ovrp_GetSkeleton(skeletonType, out skeleton) == Result.Success; + Result r = OVRP_1_44_0.ovrp_GetSkeleton(skeletonType, out skeleton); + if (r == Result.Failure_NotYetImplemented) + UnityEngine.Debug.LogWarning("OVR Plugin is too old for hand tracking, please update."); + return (r == Result.Success); } else { skeleton = default(Skeleton);