# Unity Development

**URL:** https://forum.magicleap.cloud/c/unity-development/139.md?page=2

[Latest](https://forum.magicleap.cloud/latest.md) · [Categories](https://forum.magicleap.cloud/categories.md) · [Tags](https://forum.magicleap.cloud/tags.md)

**Page:** 3

---

## [April Tag Marker Tracking ](https://forum.magicleap.cloud/t/april-tag-marker-tracking/5255)

<div class="topic-metadata">

**Author:** [@andrewdodds0715](https://forum.magicleap.cloud/u/andrewdodds0715)\
**Replies:** 2\
**Last updated:** [July 16, 2025, 2:14pm UTC](https://forum.magicleap.cloud/t/april-tag-marker-tracking/5255 "2025-07-16T14:14:27Z")

</div>

Give us as much detail as possible regarding the issue you’re experiencing: I would like to track April Tags with the Magic Leap 2. From the documentation I am using the TrackedMarker, MarkerSpawner, and MarkerTrackerEx…

---

## [Scanned marker's Pose at world origin](https://forum.magicleap.cloud/t/scanned-markers-pose-at-world-origin/6026)

<div class="topic-metadata">

**Author:** [@j.g.hoevenberg](https://forum.magicleap.cloud/u/j.g.hoevenberg)\
**Replies:** 1\
**Last updated:** [July 10, 2025, 5:38pm UTC](https://forum.magicleap.cloud/t/scanned-markers-pose-at-world-origin/6026 "2025-07-10T17:38:06Z")

</div>

Give us as much detail as possible regarding the issue you’re experiencing: Unity Editor version: Unity 6000.0.29f1 ML2 OS version: 1.12.0 Unity SDK version: 2.6.0 Host OS: (Windows) Error messages from logs (syntax…

---

## [Secondary Listener App](https://forum.magicleap.cloud/t/secondary-listener-app/6031)

<div class="topic-metadata">

**Author:** [@daniel.c.frazer](https://forum.magicleap.cloud/u/daniel.c.frazer)\
**Replies:** 1\
**Last updated:** [July 10, 2025, 5:21pm UTC](https://forum.magicleap.cloud/t/secondary-listener-app/6031 "2025-07-10T17:21:21Z")

</div>

Hi everyone, I’m currently learning Unity and working on a real-time visualization and data logging app. While I don’t have direct access to a Magic Leap 2 device yet, I’m planning to integrate with an existing proprieta…

---

## [MLCamera performance](https://forum.magicleap.cloud/t/mlcamera-performance/6023)

<div class="topic-metadata">

**Author:** [@edgar.santos](https://forum.magicleap.cloud/u/edgar.santos)\
**Replies:** 2\
**Last updated:** [July 9, 2025, 9:28am UTC](https://forum.magicleap.cloud/t/mlcamera-performance/6023 "2025-07-09T09:28:28Z")

</div>

Hi everyone, I’m having some questions about capturing performance. I have it working just fine, but higher resolutions degrade performance a lot. For testing purposes, I’m using 3840x2160 at 15fps capturing using RGBA…

---

## [Importing Vuforia Engine](https://forum.magicleap.cloud/t/importing-vuforia-engine/6013)

<div class="topic-metadata">

**Author:** [@tanior0803](https://forum.magicleap.cloud/u/tanior0803)\
**Replies:** 0\
**Last updated:** [July 7, 2025, 5:11pm UTC](https://forum.magicleap.cloud/t/importing-vuforia-engine/6013 "2025-07-07T17:11:09Z")

</div>

Hi, While importing Vuforia Engine v11.3.4 I get this error. Probably the problem is related to change made in ARFoundation package. I tried to change AR foundation version to 4.2.8 which is recommended for Vuforia bu…

---

## [Android SDK Camera2 API Example?](https://forum.magicleap.cloud/t/android-sdk-camera2-api-example/2836)

<div class="topic-metadata">

**Author:** [@nicholas.tenn](https://forum.magicleap.cloud/u/nicholas.tenn)\
**Replies:** 13\
**Last updated:** [July 3, 2025, 3:47pm UTC](https://forum.magicleap.cloud/t/android-sdk-camera2-api-example/2836 "2025-07-03T15:47:43Z")

</div>

Unity Editor version: 2022.3.10 Unity Package version / Examples: 1.12.0 ML2 OS version: 1.4.0 (secure) MLSDK version: 1.4.0 Host OS: (Windows/MacOS) - Windows In the release notes for Unity - 1.12.0 MLCamera API i…

---

## [Magic Leap 2 Async JPEG Saving Crash after ~20 Seconds (Using ImageSharp)](https://forum.magicleap.cloud/t/magic-leap-2-async-jpeg-saving-crash-after-20-seconds-using-imagesharp/5985)

<div class="topic-metadata">

**Author:** [@yanghouze](https://forum.magicleap.cloud/u/yanghouze)\
**Replies:** 1\
**Last updated:** [July 2, 2025, 6:49pm UTC](https://forum.magicleap.cloud/t/magic-leap-2-async-jpeg-saving-crash-after-20-seconds-using-imagesharp/5985 "2025-07-02T18:49:04Z")

</div>

Hi all, I’m developing a custom camera recorder on Magic Leap 2 using Unity and MLCamera APIs. The goal is to record front camera frames at 1920x1080, 20~30fps, and save each frame asynchronously as JPEG using ImageShar…

---

## [Add #MAGICLEAP scripting define to all C# classes in SDK](https://forum.magicleap.cloud/t/add-magicleap-scripting-define-to-all-c-classes-in-sdk/5942)

<div class="topic-metadata">

**Author:** [@kudos](https://forum.magicleap.cloud/u/kudos)\
**Replies:** 1\
**Last updated:** [July 2, 2025, 3:46pm UTC](https://forum.magicleap.cloud/t/add-magicleap-scripting-define-to-all-c-classes-in-sdk/5942 "2025-07-02T15:46:14Z")

</div>

Hello, Have you considered wrapping each C# script in the ML2 OpenXR Unity SDK with the scripting define #if MAGICLEAP #endif so that it is easily compatible with Unity 6 build profiles? I am creating some Unity 6 proj…

---

## [Spectator app consistently disconnecting](https://forum.magicleap.cloud/t/spectator-app-consistently-disconnecting/5961)

<div class="topic-metadata">

**Author:** [@arnaud.candaele](https://forum.magicleap.cloud/u/arnaud.candaele)\
**Replies:** 2\
**Last updated:** [July 2, 2025, 2:44pm UTC](https://forum.magicleap.cloud/t/spectator-app-consistently-disconnecting/5961 "2025-07-02T14:44:31Z")

</div>

Hello, I built an app with Unity, OpenXR. All works fine, and I’d like to add Spectator. I added the prefab (with notifications) for this, and built. I can then find the app from my phone, scan the Spectator QR on the p…

---

## [UI Misalignment in World Space Canvas on Magic Leap 2](https://forum.magicleap.cloud/t/ui-misalignment-in-world-space-canvas-on-magic-leap-2/5951)

<div class="topic-metadata">

**Author:** [@yanghouze](https://forum.magicleap.cloud/u/yanghouze)\
**Replies:** 2\
**Last updated:** [June 30, 2025, 7:05pm UTC](https://forum.magicleap.cloud/t/ui-misalignment-in-world-space-canvas-on-magic-leap-2/5951 "2025-06-30T19:05:20Z")

</div>

Hi everyone, I’m developing an AR application on Magic Leap 2 using Unity (2022.3.22f1) with Magic Leap SDK 1.12.0. In my project, I display dynamic UI elements (like face bounding boxes) on a World Space Canvas placed …

---

## [Suspected Magic Leap 2 Camera and Streaming Conflict?](https://forum.magicleap.cloud/t/suspected-magic-leap-2-camera-and-streaming-conflict/5950)

<div class="topic-metadata">

**Author:** [@yanghouze](https://forum.magicleap.cloud/u/yanghouze)\
**Replies:** 1\
**Last updated:** [June 30, 2025, 3:31pm UTC](https://forum.magicleap.cloud/t/suspected-magic-leap-2-camera-and-streaming-conflict/5950 "2025-06-30T15:31:39Z")

</div>

Hi everyone, I’m working on a Unity application for Magic Leap 2 that captures frames from the front RGB camera and sends them to a server via HTTP. However, once I enable Magic Leap Hub’s Streaming, my application see…

---

## [Transparency issue with virtual objects 3D objects become black at zero transparency](https://forum.magicleap.cloud/t/transparency-issue-with-virtual-objects-3d-objects-become-black-at-zero-transparency/5705)

<div class="topic-metadata">

**Author:** [@t.ishiyama](https://forum.magicleap.cloud/u/t.ishiyama)\
**Replies:** 3\
**Last updated:** [June 25, 2025, 5:51am UTC](https://forum.magicleap.cloud/t/transparency-issue-with-virtual-objects-3d-objects-become-black-at-zero-transparency/5705 "2025-06-25T05:51:39Z")

</div>

Unity Editor version:2022.3.11f1 ML2 OS version:1.11.0 ■Issue ・We are developing an application using Unity that overlays virtual 3D objects onto real-world structures. ・When we decrease the transparency of these 3D …

---

## ["XrCreateSpatialAnchorsAsync in the Magic Leap API failed. Reason: PoseInvalid"](https://forum.magicleap.cloud/t/xrcreatespatialanchorsasync-in-the-magic-leap-api-failed-reason-poseinvalid/5909)

<div class="topic-metadata">

**Author:** [@localjoost](https://forum.magicleap.cloud/u/localjoost)\
**Replies:** 2\
**Last updated:** [June 23, 2025, 8:13pm UTC](https://forum.magicleap.cloud/t/xrcreatespatialanchorsasync-in-the-magic-leap-api-failed-reason-poseinvalid/5909 "2025-06-23T20:13:38Z")

</div>

The main object in our app gets an anchor after two seconds of not being manipulated. For most objects this goes without a problem. Some objects completely disappear after getting an anchor. After logging some stuff, I …

---

## [Custom Transparent Shader Not Rendering on Device Despite Valid Gaze Input](https://forum.magicleap.cloud/t/custom-transparent-shader-not-rendering-on-device-despite-valid-gaze-input/5861)

<div class="topic-metadata">

**Author:** [@yanghouze](https://forum.magicleap.cloud/u/yanghouze)\
**Replies:** 1\
**Last updated:** [June 18, 2025, 4:44pm UTC](https://forum.magicleap.cloud/t/custom-transparent-shader-not-rendering-on-device-despite-valid-gaze-input/5861 "2025-06-18T16:44:12Z")

</div>

I’m encountering a rendering issue on Magic Leap 2 (OpenXR) when using a prefab that contains a transparent shader intended to simulate central vision loss (gaze-based alpha mask). Expected Behavior The prefab consists …

---

## [Hand tracking collission does not work](https://forum.magicleap.cloud/t/hand-tracking-collission-does-not-work/5876)

<div class="topic-metadata">

**Author:** [@rayz0\_0](https://forum.magicleap.cloud/u/rayz0_0)\
**Replies:** 2\
**Last updated:** [June 18, 2025, 7:56am UTC](https://forum.magicleap.cloud/t/hand-tracking-collission-does-not-work/5876 "2025-06-18T07:56:48Z")

</div>

Hey, I’m new to ML programming and I have the following problem: I have a cube (Box Collider \[isTrigger=true\], Rigidbody \[isKinematic=true\]) and XR hands (left and right). I added a Box Collider \[isTrigger=false\] to the…

---

## [Physical offset between world-facing camera and HMD origin on Magic Leap 2](https://forum.magicleap.cloud/t/physical-offset-between-world-facing-camera-and-hmd-origin-on-magic-leap-2/5875)

<div class="topic-metadata">

**Author:** [@filo.cino](https://forum.magicleap.cloud/u/filo.cino)\
**Replies:** 6\
**Last updated:** [June 17, 2025, 3:28pm UTC](https://forum.magicleap.cloud/t/physical-offset-between-world-facing-camera-and-hmd-origin-on-magic-leap-2/5875 "2025-06-17T15:28:46Z")

</div>

Hi everyone, I’m developing an ArUco marker tracking system on Magic Leap 2 using C++ with OpenCV. I estimate the marker pose relative to the physical center world-facing camera using solvePnP, and then display a corres…

---

## [Updated from Unity version 2022 to version 6, magicleap in AR foundation makes a compilation error](https://forum.magicleap.cloud/t/updated-from-unity-version-2022-to-version-6-magicleap-in-ar-foundation-makes-a-compilation-error/5897)

<div class="topic-metadata">

**Author:** [@jptsetung](https://forum.magicleap.cloud/u/jptsetung)\
**Replies:** 2\
**Last updated:** [June 16, 2025, 5:50pm UTC](https://forum.magicleap.cloud/t/updated-from-unity-version-2022-to-version-6-magicleap-in-ar-foundation-makes-a-compilation-error/5897 "2025-06-16T17:50:06Z")

</div>

Give us as much detail as possible regarding the issue you’re experiencing: Hello, i’ve updated the the editor version from 2022 to v 6000.0.51f1. I get an error on Library/PackageCache/com.unity.xr.magicleap@4e7d0d399…

---

## [Can I adjust the intensity of Segmented Dimmer, not just turn it on/off?](https://forum.magicleap.cloud/t/can-i-adjust-the-intensity-of-segmented-dimmer-not-just-turn-it-on-off/5885)

<div class="topic-metadata">

**Author:** [@JunsuSong](https://forum.magicleap.cloud/u/JunsuSong)\
**Replies:** 1\
**Last updated:** [June 16, 2025, 5:24pm UTC](https://forum.magicleap.cloud/t/can-i-adjust-the-intensity-of-segmented-dimmer-not-just-turn-it-on-off/5885 "2025-06-16T17:24:31Z")

</div>

Give us as much detail as possible regarding the issue you’re experiencing: Unity Editor version : Unity 2022.3 ML2 OS version : v1.12.0 Unity SDK version : 2.6.0 Host OS : Windows, MacOS Error messages from logs (s…

---

## [Question About Applying Segmented Dimmer to UI Elements](https://forum.magicleap.cloud/t/question-about-applying-segmented-dimmer-to-ui-elements/5881)

<div class="topic-metadata">

**Author:** [@JunsuSong](https://forum.magicleap.cloud/u/JunsuSong)\
**Replies:** 1\
**Last updated:** [June 13, 2025, 3:26pm UTC](https://forum.magicleap.cloud/t/question-about-applying-segmented-dimmer-to-ui-elements/5881 "2025-06-13T15:26:49Z")

</div>

Give us as much detail as possible regarding the issue you’re experiencing: Unity Editor version: Unity 2022.3 ML2 OS version: v1.12.0 Unity SDK version: 2.6.0 Host OS: Windows, MacOS Error messages from logs (synt…

---

## [Inconsistent Debug.Log Output](https://forum.magicleap.cloud/t/inconsistent-debug-log-output/5860)

<div class="topic-metadata">

**Author:** [@yanghouze](https://forum.magicleap.cloud/u/yanghouze)\
**Replies:** 2\
**Last updated:** [June 11, 2025, 7:55am UTC](https://forum.magicleap.cloud/t/inconsistent-debug-log-output/5860 "2025-06-11T07:55:14Z")

</div>

Hi, I’m currently experiencing inconsistent behavior with Debug.Log messages when testing on Magic Leap 2 using Magic Leap Hub 3. Here are the relevant environment details: Unity Editor version: 2022.3.22f1 Magic Leap …

---

## [Unable to Export APK from Unity - Build Prompts for Folder Instead (Magic Leap 2 Developer Pro)](https://forum.magicleap.cloud/t/unable-to-export-apk-from-unity-build-prompts-for-folder-instead-magic-leap-2-developer-pro/5845)

<div class="topic-metadata">

**Author:** [@JunsuSong](https://forum.magicleap.cloud/u/JunsuSong)\
**Replies:** 3\
**Last updated:** [June 10, 2025, 2:13pm UTC](https://forum.magicleap.cloud/t/unable-to-export-apk-from-unity-build-prompts-for-folder-instead-magic-leap-2-developer-pro/5845 "2025-06-10T14:13:18Z")

</div>

Give us as much detail as possible regarding the issue you’re experiencing: Unity Editor version: 6000.1.5f, Unity 2022.3 ML2 OS version: v1.12.0 Unity SDK version: 2.6.0 Host OS: Windows, MacOS My name is Junsu Son…

---

## [MRTK ML Camera - Near Clipping Plane](https://forum.magicleap.cloud/t/mrtk-ml-camera-near-clipping-plane/1204)

<div class="topic-metadata">

**Author:** [@istvan](https://forum.magicleap.cloud/u/istvan)\
**Replies:** 32\
**Last updated:** [June 6, 2025, 6:49pm UTC](https://forum.magicleap.cloud/t/mrtk-ml-camera-near-clipping-plane/1204 "2025-06-06T18:49:14Z")

</div>

Unable to set custom near clipping plane. Something is overwriting the camera near clipping plane on update. I searched for everything that references the cameras clipping plane - no luck In previous versions if I wo…

---

## [Magic Leap WebView HLS Streaming Support](https://forum.magicleap.cloud/t/magic-leap-webview-hls-streaming-support/5798)

<div class="topic-metadata">

**Author:** [@pcheng](https://forum.magicleap.cloud/u/pcheng)\
**Replies:** 4\
**Last updated:** [June 4, 2025, 4:26pm UTC](https://forum.magicleap.cloud/t/magic-leap-webview-hls-streaming-support/5798 "2025-06-04T16:26:13Z")

</div>

Unity Editor version: 2022.3.39f1 ML2 OS version: 1.11.0 Unity SDK version: 2.6.0 Host OS: (Windows/MacOS) Windows 11 Hi, I’m currently developing a feature to stream a HLS video via WebView on Magic Leap. I’m usin…

---

## [Error: XrCreatePixelSensor in the Magic Leap API failed. Reason: PixelSensorNotAvailableML](https://forum.magicleap.cloud/t/error-xrcreatepixelsensor-in-the-magic-leap-api-failed-reason-pixelsensornotavailableml/5668)

<div class="topic-metadata">

**Author:** [@quentin.petit](https://forum.magicleap.cloud/u/quentin.petit)\
**Replies:** 4\
**Last updated:** [June 3, 2025, 10:19pm UTC](https://forum.magicleap.cloud/t/error-xrcreatepixelsensor-in-the-magic-leap-api-failed-reason-pixelsensornotavailableml/5668 "2025-06-03T22:19:21Z")

</div>

Hello, Error: XrCreatePixelSensor in the Magic Leap API failed. Reason: PixelSensorNotAvailableML Error: Unable to create sensor type: Depth Center I occasionally encounter this error when configuring the pixel sens…

---

## [Low resolution filter](https://forum.magicleap.cloud/t/low-resolution-filter/5794)

<div class="topic-metadata">

**Author:** [@GalLibba](https://forum.magicleap.cloud/u/GalLibba)\
**Replies:** 3\
**Last updated:** [May 30, 2025, 3:22pm UTC](https://forum.magicleap.cloud/t/low-resolution-filter/5794 "2025-05-30T15:22:21Z")

</div>

Hey, I would like to sert a low res effect on my unity app running on the magic leap 2 and toggle it on runtime. I tried to use render textures but couldn’t quite get it. Has anybody tried it before and can share their …

---

## [UnauthorizedAccessException in ExternalStorage](https://forum.magicleap.cloud/t/unauthorizedaccessexception-in-externalstorage/5789)

<div class="topic-metadata">

**Author:** [@oleksii.kryzhanovskyi](https://forum.magicleap.cloud/u/oleksii.kryzhanovskyi)\
**Replies:** 1\
**Last updated:** [May 28, 2025, 6:05pm UTC](https://forum.magicleap.cloud/t/unauthorizedaccessexception-in-externalstorage/5789 "2025-05-28T18:05:32Z")

</div>

Hello, I hope you’re doing well. I have manually checked my permissions via script and they all appear to be correct. I have also added them to the manifest. However, I am still receiving an UnauthorizedAccessException.…

---

## [Compatibility Check: "Bluetooth LE for iOS, tvOS and Android" Unity Asset with Magic Leap 2](https://forum.magicleap.cloud/t/compatibility-check-bluetooth-le-for-ios-tvos-and-android-unity-asset-with-magic-leap-2/5752)

<div class="topic-metadata">

**Author:** [@hiroumi](https://forum.magicleap.cloud/u/hiroumi)\
**Replies:** 1\
**Last updated:** [May 23, 2025, 4:51pm UTC](https://forum.magicleap.cloud/t/compatibility-check-bluetooth-le-for-ios-tvos-and-android-unity-asset-with-magic-leap-2/5752 "2025-05-23T16:51:40Z")

</div>

I’m currently planning a project for the Magic Leap 2 that will require Bluetooth Low Energy (BLE) communication. I’m evaluating a Unity asset called “Bluetooth LE for iOS, tvOS and Android” available on the Asset Store: …

---

## [Magic Leap 2 ROS & URDF Support](https://forum.magicleap.cloud/t/magic-leap-2-ros-urdf-support/5744)

<div class="topic-metadata">

**Author:** [@stamatiss](https://forum.magicleap.cloud/u/stamatiss)\
**Replies:** 0\
**Last updated:** [May 21, 2025, 7:04am UTC](https://forum.magicleap.cloud/t/magic-leap-2-ros-urdf-support/5744 "2025-05-21T07:04:52Z")

</div>

Give us as much detail as possible regarding the issue you’re experiencing: Unity Editor version: ML2 OS version: Unity SDK version: Host OS: (Windows/MacOS) Has anyone tried developing built-in applications on Magi…

---

## [Unity : Rendering YUV 4k Camera Stream](https://forum.magicleap.cloud/t/unity-rendering-yuv-4k-camera-stream/5612)

<div class="topic-metadata">

**Author:** [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Replies:** 1\
**Last updated:** [April 27, 2025, 5:42pm UTC](https://forum.magicleap.cloud/t/unity-rendering-yuv-4k-camera-stream/5612 "2025-04-27T17:42:14Z")

</div>

Hey everyone! I wanted to share a little project I put together to solve the problem of rendering a 4K camera feed on Magic Leap 2 without tanking performance or running into crashes. I initially tried pushing out full R…

---

## [How to override ML2 default 10 meter far clipping plane](https://forum.magicleap.cloud/t/how-to-override-ml2-default-10-meter-far-clipping-plane/5584)

<div class="topic-metadata">

**Author:** [@belle](https://forum.magicleap.cloud/u/belle)\
**Replies:** 2\
**Last updated:** [April 23, 2025, 12:46pm UTC](https://forum.magicleap.cloud/t/how-to-override-ml2-default-10-meter-far-clipping-plane/5584 "2025-04-23T12:46:50Z")

</div>

Unity Editor version: 2022.3.59f1 ML2 OS version: 1.12.0 Unity SDK version: 2.6.0 Host OS: Windows 11 Hello! I am having some trouble with overriding the default 10m clipping plane in the Magic Leap 2 headset. I try…

[Previous page](https://forum.magicleap.cloud/c/unity-development/139.md?page=1)

[Next page](https://forum.magicleap.cloud/c/unity-development/139.md?page=3)
