Share via

I am getting an error while trying to setup Unity for HoloLens 2 Development, specifically, error CS0103: The name 'NonNativeKeyboard' does not exist in the current context

Aswad Tariq 5 Reputation points
2024-03-17T01:52:29.5766667+00:00

I am getting the following error message while trying to setup Unity for Microsoft HoloLens development:
Library\PackageCache\org.mixedrealitytoolkit.uxcore@45c07beda63c\Experimental\NonNativeKeyboard\TMPInputFieldNonNativeKeyboardTrigger.cs(67,42): error CS0103: The name 'NonNativeKeyboard' does not exist in the current context

This happens after I try to import any MRTK3 assets using the MixedRealityFeatureTool, how can I fix this?

I am currently using Unity v 2023.3.20f1, I have also tried on versions (2023.1.17f1, 2023.1.10f1 and 2021.3.27.f1), using Visual studio 2022 for the first 3 versions of Unity and Visual studio 2019 for the last one. Operating system is Windows 11.

Thanks

HoloLens | Development
HoloLens | Development

The process of creating immersive mixed reality applications for Microsoft HoloLens,


3 answers

Sort by: Most helpful
  1. L Salty 5 Reputation points
    2024-03-20T13:58:13.5266667+00:00

    DO NOT INSTALL MRTK Foundation in MR Feature tool .

    I have solved the same problem refering to : https://learn.microsoft.com/en-us/answers/questions/1464909/nonnativekeyboard-could-not-be-found

    1 person found this answer helpful.

  2. RupeshShelke-8139 0 Reputation points
    2025-03-11T12:27:47.8466667+00:00

    Ensure only MRTK3 is installed : Having both MRTK3 and MRTK2 package in the same project can lead to conflicts. Verify package installation. : Confirm that the Nonnative keyboard is included in your project. In MRTK3 it's located under packages > MRTK UX components > Experimental > NonNativeKeyboard

    0 comments No comments

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    7 deleted comments

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.