# Magic Leap 2 Eye Tracking

**URL:** https://forum.magicleap.cloud/t/magic-leap-2-eye-tracking/1442
**Category:** Input/Interaction
**Created:** [January 30, 2023, 7:18pm UTC](https://forum.magicleap.cloud/t/magic-leap-2-eye-tracking/1442 "2023-01-30T19:18:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mattycorbett](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@mattycorbett](https://forum.magicleap.cloud/u/mattycorbett)
#### Post date: [January 30, 2023, 7:18pm UTC](https://forum.magicleap.cloud/t/magic-leap-2-eye-tracking/1442/1 "2023-01-30T19:18:26Z")

</div>

I am looking to develop an app that uses the device user's eyes to inform UI design. Specifically, I need eye gaze direction, which I believe I can access on the ML2. However, the documentation is not as specific about data on ocular features (pupil diameter, blink rate, saccades). Does the ML2 allow access to any/all of this data?

---

<div class="post-metadata">

### Author: ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)
#### Post date: [January 30, 2023, 11:00pm UTC](https://forum.magicleap.cloud/t/magic-leap-2-eye-tracking/1442/2 "2023-01-30T23:00:50Z")

</div>

Hi @mattycorbett Thank you for posting on the Magic Leap 2 Forum. Please see our [Gaze Recognition](https://developer-docs.magicleap.cloud/docs/api-ref/api/Modules/group___gaze_recognition) and [Eye Tracking](https://developer-docs.magicleap.cloud/docs/api-ref/api/Modules/group___eye_tracking) APIs for more information.

Gaze recognition reports Magic Leap's best estimate of oculomotor behavior at a given point in time, metadata about the current behavior, and high-precision eye position signals. You can find more details on [MLGazeRecognitionBehavior here](https://developer-docs.magicleap.cloud/docs/api-ref/api/Modules/group___gaze_recognition#enums-mlgazerecognitionbehavior)

We have both Native C-API and Unity examples available through Magic Leap Hub to get started.

Please let me know if this helps.

---

<div class="post-metadata">

### Author: ![cpeacock](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@cpeacock](https://forum.magicleap.cloud/u/cpeacock)
#### Post date: [February 24, 2023, 7:15pm UTC](https://forum.magicleap.cloud/t/magic-leap-2-eye-tracking/1442/3 "2023-02-24T19:15:58Z")

</div>

Hey there, this discussion caught my eye. Is there any chance that ML2 will give access to pupil size data in the Unity API anytime soon?

---

<div class="post-metadata">

### Author: ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)
#### Post date: [February 24, 2023, 7:22pm UTC](https://forum.magicleap.cloud/t/magic-leap-2-eye-tracking/1442/4 "2023-02-24T19:22:55Z")

</div>

Thank you for your post @cpeacock and welcome to the Magic Leap 2 Forum. The Eye Tracking APIs have been designed with a user’s privacy in mind; it avoids the passing of any identifiable information, particularly any biometrics.
