Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin shouldn't force TrackedPoseDriver when using XR Plugin Management #1393

Closed
nwessing opened this issue Jan 31, 2023 · 3 comments
Closed

Comments

@nwessing
Copy link

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

@nwessing nwessing changed the title Plugin shouldn't force TrackedPoseDriver when using Plugin shouldn't force TrackedPoseDriver when using XR Plugin Management Jan 31, 2023
@MattGrayUL
Copy link
Contributor

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

@MattGrayUL
Copy link
Contributor

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 :)

@nwessing
Copy link
Author

That is great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants