TextMeshProのfontStyle

TMPro.TMP_TextのfontStyle設定方法

個別に設定すると最後に設定したものが反映される。

たとえば下記のように2行書いた場合は太字のみ適用されアンダーラインは付かない。

テキストオブジェクト.fontStyle = FontStyles.Underline;

テキストオブジェクト.fontStyle = FontStyles.Bold;

同時に設定したい場合はパイプで繋ぐ。

テキストオブジェクト.fontStyle = FontStyles.Underline | FontStyles.Bold;