magicleap / MRTK-MagicLeapOne

An extension to provide compatibility with Magic Leap features such as hand tracking and 6dof controller support, to Microsoft's Mixed reality Toolkit (MRTK).
Other
31 stars 8 forks source link

Compile time error: The type or namespace name `InputSystem` does not exist in the namespace `CoreServices` (are you missing an assembly reference?) #8

Closed talothman closed 3 years ago

talothman commented 3 years ago

Compile time error after following instructions to setup MRTK-MagicLeap package.

To replicate:

  1. Start new project.
  2. Follow instructions.
  3. Results in compile time error mentioned in title for all calls to CoreServices.InputSystem inside MagicLeapMRTKController.

Unity version: 2020.3.10 MRTK SDK: 2.7.0 Magic Leap SDK: 0.25.0 MRTK-MagicLeap: 1.3.1

Quick solution to fix is setting OverrideReferences to true for MagicLeap.MRTK.asmdf.

Babilinski commented 3 years ago

Thank you for reporting this issue and providing a workaround! I'm trying to reproduce this bug on my end and want to make sure my environment matches yours, did you install MRTK using the asset packs or microsoft's feature tool?

talothman commented 3 years ago

I'm trying to reproduce this bug on my end and want to make sure my environment matches yours, did you install MRTK using the asset packs or microsoft's feature tool?

Asset packs.

talothman commented 3 years ago

Just tested bring MRTK in using the Microsoft Feature Tool and it results in the same issue.

talothman commented 3 years ago

Additionally, adding using Microsoft.MixedReality.Toolkit; inside the scope of namespaceMagicLeap.MRTK.DeviceManagement.Input for MagicLeapMRTKController.cs also fixes the issue.

keveleigh commented 3 years ago

We narrowed this down to the presence of Unity's Version Control package, which seems to have been made an auto-installed package in new projects in 2020.3.10 or so.

image

You could also try uninstalling that as a workaround if you're not using it.

Additional info: https://github.com/microsoft/MixedRealityToolkit-Unity/issues/9990#issuecomment-862769761

Babilinski commented 3 years ago

Thank you, I'll push a fix ASAP!