# Issues with Eye Tracking Line Trace in Unreal Engine 5.3 on ML2

**URL:** https://forum.magicleap.cloud/t/issues-with-eye-tracking-line-trace-in-unreal-engine-5-3-on-ml2/3267
**Category:** Unreal Engine
**Tags:** development, unreal
**Created:** [March 12, 2024, 4:46pm UTC](https://forum.magicleap.cloud/t/issues-with-eye-tracking-line-trace-in-unreal-engine-5-3-on-ml2/3267 "2024-03-12T16:46:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![yuna.seo](https://avatars.discourse-cdn.com/v4/letter/y/ecd19e/32.png) [@yuna.seo](https://forum.magicleap.cloud/u/yuna.seo)
#### Post date: [March 12, 2024, 4:46pm UTC](https://forum.magicleap.cloud/t/issues-with-eye-tracking-line-trace-in-unreal-engine-5-3-on-ml2/3267/1 "2024-03-12T16:46:38Z")

</div>

Give us as much detail as possible regarding the issue you're experiencing:

**Magic Leap SDK version** : 1.5.0  
**Unreal Engine version** : 5.3  
**ML2 OS version** : 1.5.0

**Error messages from logs** (syntax-highlighting is supported via Markdown):

I've been working on an application using Unreal Engine 5.3, where I implemented a feature to show a line trace that follows the user's gaze using the "Get Gaze Data" function. While testing with remote rendering, everything worked as expected: the line trace accurately depicted where the user was looking. However, upon building and running the application on a Magic Leap 2 device, the line trace visualization disappeared, and it seems that the eye tracking feature is not functioning as it did during the remote rendering phase.

I am curious to understand why the eye tracking and line trace visualization only worked with remote rendering and not when the app was built and executed on the Magic Leap 2 device. Is there a known issue or limitation with eye tracking in Unreal Engine applications when running on Magic Leap 2? Additionally, I would like to confirm if using the "Get Gaze Data" function is the correct approach for implementing eye tracking features in Unreal Engine for Magic Leap 2 or if there's an alternative method or additional setup required for the Magic Leap platform.

Any insights, documentation references, or guidance on how to resolve this issue would be greatly appreciated. I am keen on utilizing the eye tracking capability of Magic Leap 2 to its fullest and integrating it seamlessly into my Unreal Engine project.

Thank you in advance for your assistance!

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/1/1acb155e2676908dfa90598c9503216606329d02.png)

---

<div class="post-metadata">

### Author: ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)
#### Post date: [March 13, 2024, 12:23am UTC](https://forum.magicleap.cloud/t/issues-with-eye-tracking-line-trace-in-unreal-engine-5-3-on-ml2/3267/2 "2024-03-13T00:23:07Z")

</div>

Hi @yuna.seo,

I have reached out to our team to find a solution for your issue. Are you receiving any error logs when building to the ML2?

Best,

El

---

<div class="post-metadata">

### Author: ![yuna.seo](https://avatars.discourse-cdn.com/v4/letter/y/ecd19e/32.png) [@yuna.seo](https://forum.magicleap.cloud/u/yuna.seo)
#### Post date: [March 13, 2024, 5:12am UTC](https://forum.magicleap.cloud/t/issues-with-eye-tracking-line-trace-in-unreal-engine-5-3-on-ml2/3267/4 "2024-03-13T05:12:50Z")

</div>

[log.txt](https://forum.magicleap.cloud/uploads/short-url/vs8F8qfqRuQpVG5Po2NOS1gxoGi.txt) (1.0 MB)

This is a very urgent situation. I kindly request your prompt assistance.

Thank you. I look forward to your response.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/5/57045858f0f413e2928138422f836500d0d0b3e7.png)

---

<div class="post-metadata">

### Author: ![yuna.seo](https://avatars.discourse-cdn.com/v4/letter/y/ecd19e/32.png) [@yuna.seo](https://forum.magicleap.cloud/u/yuna.seo)
#### Post date: [March 13, 2024, 2:03pm UTC](https://forum.magicleap.cloud/t/issues-with-eye-tracking-line-trace-in-unreal-engine-5-3-on-ml2/3267/5 "2024-03-13T14:03:12Z")

</div>

I've solved this.

It was because the nose pads were missing, causing the glasses to not stay in place when worn.

Thank you for your help!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/bd9b737a4d45ea243aa7eb177d60a773b806899a.svg) [@system](https://forum.magicleap.cloud/u/system)
#### Post date: [March 28, 2024, 2:04pm UTC](https://forum.magicleap.cloud/t/issues-with-eye-tracking-line-trace-in-unreal-engine-5-3-on-ml2/3267/6 "2024-03-28T14:04:11Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
