diff --git a/Source/SenseGloveTracking/Private/SGTracking/SGXRTracker.cpp b/Source/SenseGloveTracking/Private/SGTracking/SGXRTracker.cpp index e7fbcbbb..968287c0 100644 --- a/Source/SenseGloveTracking/Private/SGTracking/SGXRTracker.cpp +++ b/Source/SenseGloveTracking/Private/SGTracking/SGXRTracker.cpp @@ -1013,6 +1013,8 @@ FTransform FSGXRTracker::FImpl::GetMeshFingerStartBoneRefTransform( return Transform; } +#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION < 7 + bool FSGXRTracker::GetMotionControllerData( UObject* WorldContextObject, const EControllerHand Hand, @@ -1238,6 +1240,8 @@ bool FSGXRTracker::GetMotionControllerData( return OutMotionControllerData.bValid; } +#endif /* ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION < 7 */ + #if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 5 bool FSGXRTracker::GetMotionControllerState(