Page 1 of 1

2D Click Example Bubble UI and Super Text Mesh

Posted: Tue Jan 24, 2023 7:17 am
by EgoPlaga
sorry for my bad english, hope you understand me. I just recently started using Unity and I guess I'm just really stupid, but could you help me?
I want to integrate dialogs in my game like in 2D Click Example Bubble UI. But I also want to use Super Text Mesh there. I read all the guides on how to turn it on, but I could not. With normal dialogs everything works, I can add super text. But 2D Click Example Bubble UI only works with Override Dialogue UI Canvas and I can't add this text there. I tried to fix it with STMU Text Updater and it seems to work, but when using TypeWritter Effect, Super Text adds unnecessary components like "</color>" (as in the screenshot). I've been trying to fix this for a few days and nothing good has come of it. Hope you can help me!
Is it possible to use 2D Click Example Bubble UI normally with Super Text Mesh? And how to do it properly?
ImageImage

Re: 2D Click Example Bubble UI and Super Text Mesh

Posted: Tue Jan 24, 2023 8:44 am
by Tony Li
Hello,

Make sure you're using the Dialogue System's SuperTextMesh Support. From your post, it looks you've already done those steps.

STM doesn't work with the UnityUITypewriterEffect or TextMeshProTypewriterEffect components. Remove UnityUITypewriterEffect from your STM GameObject.

Re: 2D Click Example Bubble UI and Super Text Mesh

Posted: Wed Jan 25, 2023 3:18 am
by EgoPlaga
Tony Li wrote: Tue Jan 24, 2023 8:44 am Hello,

Make sure you're using the Dialogue System's SuperTextMesh Support. From your post, it looks you've already done those steps.

STM doesn't work with the UnityUITypewriterEffect or TextMeshProTypewriterEffect components. Remove UnityUITypewriterEffect from your STM GameObject.
Thanks for the answer! But how do I implement the typewriter effect then? If I make a typewrite effect with STMUI in the STM itself, then it doesn't work. Is it possible to attach STM to 2D Click Example Bubble UI without STMUI updater?
Or how else can you implement a system in which the dialogue will be over the game object?

Re: 2D Click Example Bubble UI and Super Text Mesh

Posted: Wed Jan 25, 2023 11:09 am
by Tony Li
Super Text Mesh has its own typewriter effect. Don't use UnityUITypewriterEffect or TextMeshProTypewriterEffect.

Instead, inspect the Super Text Mesh component, and set Timing > Draw Order to Left To Right:

stmTypewriter.png
stmTypewriter.png (31.56 KiB) Viewed 271 times

Re: 2D Click Example Bubble UI and Super Text Mesh

Posted: Wed Jan 25, 2023 11:20 am
by EgoPlaga
Tony Li wrote: Wed Jan 25, 2023 11:09 am Super Text Mesh has its own typewriter effect. Don't use UnityUITypewriterEffect or TextMeshProTypewriterEffect.

Instead, inspect the Super Text Mesh component, and set Timing > Draw Order to Left To Right:


stmTypewriter.png
Yes, I know, but it doesn't work with STMUI update. The text simply stops at one letter or appears all at once, no matter how I change the settings.

Re: 2D Click Example Bubble UI and Super Text Mesh

Posted: Wed Jan 25, 2023 11:52 am
by Tony Li
Hi,

What is "STMUI update"?

If you import the "SuperTextMesh Support.unitypackage" file, there are two example scenes. One is for the legacy integration. You can ignore it. The other uses the current STM integration. It demonstrates the STM typewriter effect in a conversation.