Custom UI problems

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Pendergast
Posts: 38
Joined: Sun Oct 18, 2020 1:48 pm

Custom UI problems

Post 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 :?
PENDERGAST / NyxNikita
Artist & Writer
Caroline I. Letuppe
🌿 Instagram: https://instagram.com/nyxnikita
🌿 Site officiel: https://nyxnikita.com
🌿 Boutique: https://shop.nyxnikita.com
🌿 Tous mes liens: https://nyxnikita.carrd.co/
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom UI problems

Post 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 168 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.
Post Reply