- Home /
How to select, via script, a style by name for a TextMeshPro.UGUI?
I have a stylesheet in my project with many styles, for example, a style called "disabled" and one called "enabled". I can easily apply those styles via the editor.
How can I change the style applied to a text object via script?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613041015im_/https://answers.unity.com/themes/thub/images/avi.jpg)