Page 1 of 1

Custom UI problems

Posted: Tue May 18, 2021 6:43 am
by Pendergast
Hi Tony,

So, i'm trying to make my own UI.

It has been three month i'm trying to create my own UI panel but i can't even make it works propely. Is there any way to get help ? I'm going crazy, even with tutorials... My text doesn't shrink with the screen even if i use all the layers and canvas component (and i watched so many tutorial about screen fitting, but nothing seems to work)

Plus, when i create a prefab of my UI to save the "progress" i make with it, and then i replace it in my game, it breaks everything... i don't know what to do, i'm desesperate. All of my work just desepeared.

(Also, i have questions about some other things)

For the typewriter effect, there's no TextMeshPro field in the component where he is ? And is the option to press enter to reveal the whole text then again to skip is by default ?

I have an animated cursor on my bottom right corner. I want it to show and animate when the text is displayed to say to the player "tap to skip". I don't know if it's possible with Dialogue System or if i have to scipt something myself ?

Thanks and sorry :?

Re: Custom UI problems

Posted: Tue May 18, 2021 9:11 am
by Tony Li
Hi,

You can do all of that in the Dialogue System without any scripting. Here's an example scene:

DS_PendergastExample_2021-05-18.unitypackage

I added "!!!" to the names of GameObjects that I customized. For example, the Dialogue Manager's "Canvas" GameObject is named "!!! ADDED CANVAS SCALER - Canvas". It has a Canvas Scaler component that will scale the UI's size based on the screen resolution.

Tip: You can enter "!!!" in the Hierarchy's search bar to show all customized GameObjects:

customizedGameObjects.png
customizedGameObjects.png (15.16 KiB) Viewed 194 times

If you have any questions about the example, please let me know. If you get stuck with your own dialogue UI, feel free to send me a copy with an explanation of what's going on.