How to get dialogue showing as TextMesh on a Response Button of a Bubble Standard Menu UI template ?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
dfernand
Posts: 6
Joined: Thu Oct 15, 2020 7:53 pm

How to get dialogue showing as TextMesh on a Response Button of a Bubble Standard Menu UI template ?

Post by dfernand »

How to get dialogue showing as TextMesh on a Response Button of a Bubble Standard Menu UI template ?

It's a noob question and I'm pushed for time (sorry) and I can't figure it out quick enough. I've Gone to the Dialogue system 'Welcome' GUI and clicked on "TextMesh Pro (TMP_PRESENT)", I've put a #define in the C# code for TMP_Present, I've re-imported all assets in my Unity project, I've also loaded the actual TextMeshPro asset into the scene but I dunno who to get Dialogue showing with TextMesh Pro fonts (only Normal). Anyone tell me how to do that ?

I've looked at the TextMeshPro Support section in the Dialgoue System help but I must have missed something .. https://www.pixelcrushers.com/dialogue_ ... ProSupport

The button just can only show normal text .. (see bubble dialogue screenshot blow), strangely for the 'PC Name' part of the Bubble Template UI component it does have a TextMeshPro slot which does work but I also want TextMeshPro fonts for the actual dialogue !! please advise ... !!

There should be some screen shots below of the simple project ... two cubes, one Batman, the other Joker just having a Bubble template conversation showing 'some of' the the settings for the Bubble Template Standard UI and Response Button also (showing normal text slot only not TextMeshPro...)....

thanks in advance

https://ibb.co/26VYpBF
https://ibb.co/T4YL5yW
https://ibb.co/8rC4HN8
User avatar
Tony Li
Posts: 22133
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to get dialogue showing as TextMesh on a Response Button of a Bubble Standard Menu UI template ?

Post by Tony Li »

Hi,

You only need to do these steps:

1. Tick the Welcome Window's TMP_PRESENT checkbox. No need to manually add Scripting Define Symbols.

2. Unassign the Standard UI Response Button component's Label field. When it's unassigned, it will show slots for UI Text or TextMesh Pro.

3. Add your TextMeshProUGUI component and assign it to the TextMesh Pro slot.
dfernand
Posts: 6
Joined: Thu Oct 15, 2020 7:53 pm

Re: How to get dialogue showing as TextMesh on a Response Button of a Bubble Standard Menu UI template ?

Post by dfernand »

many thanks, that was easy.
dfernand
Posts: 6
Joined: Thu Oct 15, 2020 7:53 pm

Re: How to get dialogue showing as TextMesh on a Response Button of a Bubble Standard Menu UI template ?

Post by dfernand »

many thanks, that was easy.
Post Reply