unity-game-enginetextmeshpro

GameObject covers UI text on Android


There are no problems when I am testing it in the editor. However, one specific GameObject (which is a simple sphere object) covers texts while testing the game on Android. This object is scaled between certain values at runtime as well. The same object doesn't cover the texts created at runtime. Any idea why this happens?


Solution

  • I fixed it by changing the shader of the used font material to TextMeshPro/Mobile/Distance Field Overlay.