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

MRTK doesn't work in Unity 2020.2 #8269

Closed
keveleigh opened this issue Aug 8, 2020 · 4 comments · Fixed by #8341
Closed

MRTK doesn't work in Unity 2020.2 #8269

keveleigh opened this issue Aug 8, 2020 · 4 comments · Fixed by #8341
Assignees
Milestone

Comments

@keveleigh
Copy link
Contributor

Describe the bug

Due to Unity's removal of the legacy XR APIs in Unity 2020.2, many MRTK scripts fail to compile. This issue will track the work being done to unblock MRTK use on Unity 2020.

This work started with #7795.

@keveleigh
Copy link
Contributor Author

This should be good to go now, after I merged the last of my PRs yesterday. There will still be some follow-ups to support #7514/#7513, but at least now we're compiling.

@Rive4
Copy link

Rive4 commented Mar 8, 2021

Hello,

I am having problems when I try to import MRTK 2.6.0 and Leap Motion's Core module (v4.7.1) on Unity 2020.2.
I am following the documentation steps as I made with previous versions in Unity 2019.4 and the errors are the following:

Assembly with name 'LeapMotion' already exists (Assets/Plugins/LeapMotion/LeapMotion.asmdef)
Assembly with name 'LeapMotion' already exists (Assets/Plugins/LeapMotion/Core/Scripts/LeapMotion.asmdef)

Regards,

@keveleigh
Copy link
Contributor Author

@CDiaz-MS Has Leap started shipping their own asmdefs?

@CDiaz-MS
Copy link
Contributor

CDiaz-MS commented Mar 9, 2021

Hi @Rive4, the current versions of the Leap Motion Core modules compatible with MRTK are 4.5.0 and 4.5.1 which are outlined at the top of the documentation page here:
https://docs.microsoft.com/en-us/windows/mixed-reality/mrtk-unity/features/cross-platform/leap-motion-mrtk

In your project, instead of importing the 4.7.1 unity modules, import the 4.5.1 modules: https://github.com/leapmotion/UnityModules/releases/tag/UM-4.5.1

The release notes for the 4.5.1 modules indicate that you also need to import the Oculus XR package while using Unity 2020.2 for Spatial Tracking support and you might also need to add UnityEngine.SpatialTracking as a reference in the LeapMotion.asmdef.
image

@keveleigh yes leap does ship their own asmdef , in the configuration process we are creating our own asmdefs placing them in leap directories and modifying references.

Support for the 4.7.1 Leap Motion Unity Modules would be a new addition to MRTK.

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

Successfully merging a pull request may close this issue.

3 participants