Error when building Unity+MRTK3.0 project: 'The type or namespace name 'EyesPose' could not be found'

Liang Chen 0 Reputation points
2024-07-01T09:26:28.8233333+00:00

I am building a project with Unity+MRTK3.0, and I am getting an error that states: 'The type or namespace name 'EyesPose' could not be found'. However, the script 'EyeCalibrationChecker' has 'using Windows.UI.Input.Spatial'. The error message shows:I am building a project with Unity+MRTK3.0, and I am getting an error that states: 'The type or namespace name 'EyesPose' could not be found'. However, the script 'EyeCalibrationChecker' has 'using Windows.UI.Input.Spatial'. The error message shows:

Library\PackageCache\org.mixedrealitytoolkit.input@fd4c2f6aee55\Utilities\EyeCalibration\EyeCalibrationChecker.cs(123,21): error CS0246: The type or namespace name 'EyesPose' could not be found (are you missing a using directive or an assembly reference?)Library\PackageCache\org.mixedrealitytoolkit.input@fd4c2f6aee55\Utilities\EyeCalibration\EyeCalibrationChecker.cs(123,21): error CS0246: The type or namespace name 'EyesPose' could not be found (are you missing a using directive or an assembly reference?)

Library\PackageCache\org.mixedrealitytoolkit.input@fd4c2f6aee55\Utilities\EyeCalibration\EyeCalibrationChecker.cs(123,49): error CS1061: 'SpatialPointerPose' does not contain a definition for 'Eyes' and no accessible extension method 'Eyes' accepting a first argument of type 'SpatialPointerPose' could be found (are you missing a using directive or an assembly reference?)Library\PackageCache\org.mixedrealitytoolkit.input@fd4c2f6aee55\Utilities\EyeCalibration\EyeCalibrationChecker.cs(123,49): error CS1061: 'SpatialPointerPose' does not contain a definition for 'Eyes' and no accessible extension method 'Eyes' accepting a first argument of type 'SpatialPointerPose' could be found (are you missing a using directive or an assembly reference?)

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,597 questions
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
390 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. 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.


    Comments have been turned off. Learn more

  2. 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.


    Comments have been turned off. Learn more

  3. Nathan Manis 5 Reputation points
    2024-07-08T16:46:14.11+00:00

    Hello,

    From the error above, it may be due to dependency issue in the specific version of Unity. From post, I can see MRTK 3.0 referenced. What is version of Unity being used for the project?

    Also, does the MRTK 3.0 samples work for you?

    https://learn.microsoft.com/en-us/windows/mixed-reality/mrtk-unity/mrtk3-overview/getting-started/exploring-features/mrtk3-sample-scenes#included-sample-scenes

    Thanks,

    Nathan

    0 comments No comments