Forum Discussion
Lythom
5 months agoHonored Guest
[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
- Setup a new XR empty project using Meta XR All-in-One SDK 77.0.0
- Create an OVROverlayCanvas 100x100
- Add a TextMeshPro text inside, size 100x100, and configure so that the text covers most of the area.
- On the OVROverlayCanvas use pivot (0,1)
- 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
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 years ago
- 1 month ago
- 8 months ago