# How to get pose of camera at time of frame capture in OpenXR (unity land)?

**URL:** <https://forum.magicleap.cloud/t/how-to-get-pose-of-camera-at-time-of-frame-capture-in-openxr-unity-land/6175>\
**Category:** OpenXR\
**Created:** [August 8, 2025, 7:28pm UTC](https://forum.magicleap.cloud/t/how-to-get-pose-of-camera-at-time-of-frame-capture-in-openxr-unity-land/6175 "2025-08-08T19:28:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric\_engineer](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@eric\_engineer](https://forum.magicleap.cloud/u/eric_engineer)\
**Post date:** [August 8, 2025, 7:28pm UTC](https://forum.magicleap.cloud/t/how-to-get-pose-of-camera-at-time-of-frame-capture-in-openxr-unity-land/6175/1 "2025-08-08T19:28:00Z")

</div>

I have been trying a bunch of things but no luck so far. Is there a doc on how to do this? I found the one for the depreciated SDK but no the openxr unity approach. So how do you get the pose that corresponds to the picture you just took (for depth and RGB)?

Thank you

---

<div class="post-metadata">

**Author:** ![magicbot](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/magicbot/32/2470_2.png) [@magicbot](https://forum.magicleap.cloud/u/magicbot)\
**Post date:** [August 11, 2025, 5:18pm UTC](https://forum.magicleap.cloud/t/how-to-get-pose-of-camera-at-time-of-frame-capture-in-openxr-unity-land/6175/2 "2025-08-11T17:18:07Z")

</div>

For the RGB camera you can use the previous ML Camera API with Perception snapshot enabled in the Settings of the Magic Leap Support OpenXR Feature in Unity. You will also need to set your tracking origin to unbounded.

To get the pose of a pixel sensor at a specific time, you may need to look at this post:

> [@Hologram Drift Issue When Tracking Object with Retroreflective Markers using Depth Camera (Raw data)](https://forum.magicleap.cloud/t/hologram-drift-issue-when-tracking-object-with-retroreflective-markers-using-depth-camera-raw-data/5618/8):
>
> Sorry to hear that you are running into this issue. The team is out of office today but you could look into making a minor change in the SDK itself and see if it resolves your issue. Possibly by modifying a function in the SDK to allow for an additional property to be passed into the Get Pose function. (Note we have not tested this workaround yet) Move the Magic Leap Unity SDK into your project’s packages directory. Make sure the Magic Leap Unity Package is imported into your project as a folde…
