Align aruco marker in stereo vision


I was trying out the “Simple marker Placement” in the unity examples. In the editor game view its working as expected, the cube is overlayed perfectly on the aruco marker but when I used it as AR-passthrough i.e attached zed on the front of oculus and tried to view from there, the marker cube aligns with the marker only when I look from my left eye and keep the right eye closed. I know its because its aligned to the left camera, but how can I transform it such that it looks correct in stereo vision?.

Had to adjust the IPD in VR. It works fine after that.

Thank you for posting the solution once you figured it out. It will help others who will have the same question and find this post