ultraleap/UnityPlugin

Plugin shouldn't force TrackedPoseDriver when using XR Plugin Management

nwessing opened this issue · 3 comments

Our application uses Unity's XR plugin management, but not TrackedPoseDriver (we have our own implementation). We have trouble using this plugin since it adds TrackedPoseDriver to our camera, the problematic code is here:

#if XR_MANAGEMENT_AVAILABLE
if (mainCamera.GetComponent<UnityEngine.SpatialTracking.TrackedPoseDriver>() == null)
{
mainCamera.gameObject.AddComponent<UnityEngine.SpatialTracking.TrackedPoseDriver>().UseRelativeTransform = true;
}
#endif

Thanks @nwessing, i'll link this issue to the ticket and see if we can make this feature optional soon :)

Hi @nwessing

An adjustment to make this optional via the Advanced Settings of the LeapXRServiceProvider has been merged into develop and is currently being prepared for the next release, I would expect it to be released within 2 weeks (more likely sooner)

With that, I will close this issue :)

That is great, thank you!