UGUI -TextMeshPro(TMP) multi-material

Relatively rudimentary question. But also simply record it.

When using TMP to make text, if: one text needs to be stroked, and the other does not, then multi-material is required.

step:

1. Create two new texts and use the fonts that have been created in SDF.

 If you directly adjust the stroke of the material, the effect of the two texts. will change together

 2. In the Project window, select the text material. Then in the material options, select [Create Material Preset] to create a new material preset.

 

3*, rename the newly created text material to facilitate recording and searching. (This step is not necessary)

 4. Specify different materials for text respectively:

 5. After specifying the text material, adjust it separately to see the effect.

 

Guess you like

Origin blog.csdn.net/chenggong2dm/article/details/128491472