I want to get the position of the VisionPro camera!

I want to get the camera position every frame in order to billboard the UI
From what I have found, there is currently no way to get the camera position in VisionPro!
I’m having trouble.

You can get it by attach a Tracked Pose Driver component to the Main Camera to get devicePosition [AR Handheld Device] and deviceRotation [XR HMD]

If you’re in bounded mode, you just can’t unfortunately. It works in unbounded and fully immersive modes though.

I have it in unrestricted mode, but for some reason it does not work.
I attach the Tracked Pose Driver to the camera object and get the position as follows in the code.

Vector3 cameraPosition = trackedPoseDriver.positionInput.action.ReadValue<Vector3>();

I would like to know how to solve this problem

You should be using XR Origin for that, it already comes with Tracked Pose Driver

Hey, I had the same issue, did you figure it out?