Gaze tracking data with MRTK3 -Hololens2

Alessandro PIOL 0 Reputation points
2023-11-14T12:19:54.4733333+00:00

Hi,
I am trying to export Eye gaze data, (preferably as coordinates relative to a 2D plane placed in front of the user).
The initial and main problem though is that I don’t know how to access said data through Unity.

I have read that I should first of all import

using

Correct?

However, it gives me an error in the second line of code:

Error CS0234 The type or namespace name ‘Input’ does not exist in the namespace ‘Microsoft.MixedReality.Toolkit’ (are you missing an assembly reference?).

I initialized the project with MixedRealityFeatureTool, already importing the MRTK3 libraries (+XRplugin).

Are there any solutions to get the gaze data?

Thank you!

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

1 answer

Sort by: Most helpful
  1. Zuocheng Wang - MSFT 3,081 Reputation points Microsoft Vendor
    2023-11-15T06:18:07.4966667+00:00

    Hello, Welcome to Microsoft Q&A,

    For the eye gaze in MRTK 3, the namespace you should use is MixedReality.Toolkit.Input.

    For eye gaze data, you can try to get it through FuzzyGazeInteractor, please refer to Eye tracking - MRTK3 | Microsoft Learn.

    Also, you can refer to the samples in Exploring MRTK3 sample scenes - MRTK3 | Microsoft Learn and MixedRealityToolkit-Unity/UnityProjects/MRTKDevTemplate at main · MixedRealityToolkit/MixedRealityToolkit-Unity (github.com).


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments