Home > database >  Is there any way to have a Unity TextMeshPro dropdown option with a different font than the others i
Is there any way to have a Unity TextMeshPro dropdown option with a different font than the others i

Time:10-23

I am using TextMeshPro Dropdowns in Unity as the basis for my menu system. The problem is Unity TMP Dropdowns require one option to be selected at all times, and clicking the already selected option won't trigger the "On Value Changed" function for processing the option.

Thus the only solution I am aware of is to have the first option be a dummy option like "CHOOSE:" or "SELECT ONE:" which is then the initially selected option. This is not too bad but it would be better if it was possible to at least make it a different font (for example, bold) so it looks intentional.

From what I can see however, there is no way to script or code anything to change the font size/color/face of only one option in a dropdown.

Is this possible or would there be another suggested solution to the problem?

Thanks.

CodePudding user response:

You can use the enter image description here

  • Related