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

Unable to get Coordinate System with new Open XR and MRTK3 #11833

Open
tranquanglam123 opened this issue Sep 16, 2024 · 0 comments
Open

Unable to get Coordinate System with new Open XR and MRTK3 #11833

tranquanglam123 opened this issue Sep 16, 2024 · 0 comments

Comments

@tranquanglam123
Copy link

tranquanglam123 commented Sep 16, 2024

I am doing the same project, and I use this reference solution #10082 (comment) to get the coordinate system:

#if ENABLE_WINMD_SUPPORT
Windows.Perception.Spatial.SpatialCoordinateSystem unityWorldOrigin;
#endif

private void Awake()
{

#if ENABLE_WINMD_SUPPORT
SpatialCoordinateSystem unityWorldOrigin = PerceptionInterop.GetSceneCoordinateSystem(UnityEngine.Pose.identity) as SpatialCoordinateSystem;
#endif

But it always return null.

Expected behaviour:
The function returns the coordinate system

Unity editor version
Unity 2022.3.21f1

Mixed Reality Toolkit
MRTK 3

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

1 participant