Chromatic aberration between TextMesh and Text

Hi, I am setting the same properties for TextMesh and Text. But there is chromatic aberration between them.
7608946--945091--upload_2021-10-28_11-4-14.png( First is TextMesh, second is Text. )
Thanks for the replies.

TextMesh as in GameObject - 3D Object - 3D Text?

and Text as in UI.Text?

If so, the vertex color of the old TextMesh is not being modified when switching to Linear Color Space whereas the UI.Text is being color corrected.

If by TextMesh, you mean TextMeshPro, then this was revised in the latest preview release of the TMP package which is version 1.6.0-preview.1 for Unity 2018.4, version 2.2.0-preview.1 for Unity 2019.4 and version 3.2.0-preview.1 for Unity 2020 or newer.

1 Like

TextMesh is 3D Text. So how should i do to correct the color of 3D Text? Thanks!!!

TextMesh is a legacy text component which is no longer on active development so no solution for that sadly :frowning:

However, the normal component was designed to replace TextMesh with a ton of additional functionality and is still very much on active development.

Any reason you are not using TMP?

Because TMP needs Canvas renderer, we want to avoid Canvas Rebuild:( But i will try to replace TextMesh with TMP and test the cost of TMP, if little consumption, i will choose it:)

There are 2 TMP components. The normal component works with the MeshRenderer just like TextMesh. This component used to add an inactive CanvasRenderer but that was changed more than a year ago.

The other TMP component is the component which is designed to work with the Canvas system but since you were using TextMesh, you should use the normal component.

Make sure you use the latest preview as it contains the changes related to Gamma vs. Linear Color Space.

1 Like

Okkk. Thanks again for your reply!