Good morning, afternoon or evening, whatever time you are reading this.
I am developing a project in VR, with Quest 2, in which I present a shimmering problem, I have some UI elements (Images and texts) in which they present flickering when I move away from the canvas (menu). Is there any way you can help me fix it?
I assume you are talking about aliasing artifacts on the edges of sharp corners, in particular text. This is a known issue on VR devices. There is no simple answer to this issue, but here are some pointers.
Very simple:
- Use large font sizes and small canvas scale (i.e. canvas uses .001 scale, increase font size accordingly).
Medium:
- All VR titles must have a minimum of 2xAA set up. 4xAA is standard. On most devices 4xAA is effectively free perf-wise on forward pipeline anyway.
- For text: Never use Unity built-in text. Use TextMeshs (UI: TextMeshProUGUI)
- For images: Mipmaps need to be enabled. Set in Image importer. No exceptions
Advanced:
- You can use platform-specfic improvements for text by using overlays. For example, on the Meta platform, there’s this: https://developers.meta.com/horizon/documentation/unity/unity-ovroverlay/. Similar stuff exists on other platforms.
Philip