TextMeshPro text is not visible on the screen during build, text is getting truncated

some of the texts are not visible in My build, and some are getting truncated as in the orange button in the above image, but it’s clearly visible in unity during play mode.
any idea why?? and how can I fix it ?
Thanx in advance

Are you using Unity 2021.x?

no, I am using unity 2019.4.18

What platform are you building to?

Do you get the same issue on a PC, Mac & Linux Standalone build or does this only happen on iOS or Android?

The truncated text appears to be partially masked by something else… Are you using a mixture of text objects that are in screen space overlay or screen space camera and others in world space or a mixture of normal and text objects where these happen to share the same material preset? If so, see if using a different set of material presets for text objects in world space vs. the others resolves the issue in a build?

1 Like

i am taking the build for android,
And Exactly this was the problem ,
in world space and in screen Space overly ,and both were sharing the same material preset.

I assigned a different material to the one in the world space and it fixed the problem .

Thanx for the help.

There are several posts about this behavior but here is a quick summary.

When rendering in screen space overlay vs. world space, the ZTest on the material needs to be set accordingly. Since the same material is used in this case, we end up with a conflict on the ZTest. Depending on the rendering order and potential timing, we can end up with disappearing text and objects. Ie. the same behavior could be observed with objects sharing the same material in overlay vs. worldspace.

1 Like

This works! Thanks Stephan :slight_smile: