Fix: UI graphics bug [MTT-6786] by jilfranco-unity · Pull Request #848 · Unity-Technologies/com.unity.multiplayer.samples.coop
Description
A workaround fix for the UI graphics bug that I tracked down with the help of @fernando-cortez
The bug is due to a regression caused by this commit in the unity trunk. In short, the issue is caused by a math issue when taking MipMap textures sizes into account when calculating the texel size for the UVs of the UI sprite meshes. The workaround fix is to make sure one of the quality levels allows for full resolution MipMaps (since anything less than full res causes the meshes to generate with the wrong UV scaling). In our case, I set the High quality setting on mobile to allow for full resolution textures, increased from half resolution.
There is a small performance/memory hit to be had by allowing full res textures on mobile, but it's a small price to pay to fix the visual bug and unblock the release. We'll just revert this change once the regression is fixed in the future. :)
Issue Number(s)
Contribution checklist
- [n/a] Tests have been added for boss room and/or utilities pack
- Release notes have been added to the project changelog file and/or package changelog file
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- JIRA ticket ID is in the PR title or at least one commit message
- Include the ticket ID number within the body message of the PR to create a hyperlink
- [n/a] An Index entry has been added in readme.md if applicable