Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Lythom's avatar
Lythom
Honored Guest
5 months ago

[Bug] OVROverlayCanvas crop content when changing pivot

Hello!
I have not found a proper way to report a bug to the Meta XR SDK team. Is this the right channel to do so ? Anyway here is my report.

Problem

When changing pivot of an OVROverlayCanvas to something that is not (0.5, 0.5), the render context is truncated. I can see that the overlay camera used by the OVROverlayCanvas is not aligned with the canvas area.

Versions

  • Meta XR Core SDK 77.0.0
  • Unity 2022.3.62f1

Minimal step to reproduce

  1. Setup a new XR empty project using Meta XR All-in-One SDK 77.0.0
  2. Create an OVROverlayCanvas 100x100
  3. Add a TextMeshPro text inside, size 100x100, and configure so that the text covers most of the area.
  4. On the OVROverlayCanvas use pivot (0,1)
  5. Run
    Observed: the text is cropped, only the top left part is visible.
    Expected: the text is fully visible on the canvas.

     

Additional note
looking at the code, I think the overlay camera should be offsetted base on the pivot to always be centerd over the canvas instead of always being placed at localPosition = Vector3.Zero. Maybe some other fix is appropriate.

Replies have been turned off for this discussion