Page 1 of 1

StandardUIResponseButton with textmeshpro

Posted: Wed Apr 20, 2022 9:50 am
by joeylu
Hi Tony, In your template, a StandardUIResponseButton uses Unity Button/Text UI to display text, it working perfectly
However, if I remove the text UI component and replaced with text mesh pro component, keep the same "text" name under the button, the menu formattedText.text is not showing
Currently I modified StandardUIMenuPanel and manually assign the formattedText.text to the target button>textmeshpro
Just curious if there's a better way instead hard code it, tks

Re: StandardUIResponseButton with textmeshpro

Posted: Wed Apr 20, 2022 10:53 am
by Tony Li
Hi,

The Dialogue System has native TextMeshPro (TMP) support. First enable TMP Support. Then unassign the UI Text field (if it's still assigned). The Label field should now show slots of UI Text or TextMeshProUGUI. Assign your TMP element to the TextMeshProUGUI slot.

Re: StandardUIResponseButton with textmeshpro

Posted: Wed Apr 20, 2022 10:59 am
by joeylu
got it, forgot to enable the textmeshpro from the tools menu, tks

Re: StandardUIResponseButton with textmeshpro

Posted: Wed Apr 20, 2022 11:03 am
by Tony Li
Glad to help!