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

Has anyone succeeded in unity 2020? #67

Open
shoukailiang opened this issue Jan 8, 2022 · 3 comments
Open

Has anyone succeeded in unity 2020? #67

shoukailiang opened this issue Jan 8, 2022 · 3 comments

Comments

@shoukailiang
Copy link

Has anyone succeeded in unity 2020?

@USTBVEO
Copy link

USTBVEO commented Apr 11, 2022

I tried to build on Hololens but it turned to the error : Assets\ARToolKitUWP\Scripts\ARUWPVideo.cs(723,20): error CS0103: The name 'WorldManager' does not exist in the current context
image
I searched and find that 'WorldManager' doesn't exist in Unity 2020.3.
image

@petergu684
Copy link

In Unity 2020 (and all other versions using XRSDK), replace the line with following:

 WorldOriginPtr = UnityEngine.XR.WindowsMR.WindowsMREnvironment.OriginSpatialCoordinateSystem;

PS: It won't work in Unity 2021.2 or later where OpenXR is the only supported pipeline.

@USTBVEO
Copy link

USTBVEO commented Oct 18, 2022

In Unity 2020 (and all other versions using XRSDK), replace the line with following:

 WorldOriginPtr = UnityEngine.XR.WindowsMR.WindowsMREnvironment.OriginSpatialCoordinateSystem;

PS: It won't work in Unity 2021.2 or later where OpenXR is the only supported pipeline.

Thanks and I did that where I found that the hologram moved as I turned around my head. The hologram was not set to a fixed position. How can I tackle this problem? Thanks a lot!

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

3 participants