Page 1 of 1

Mobile UI

Posted: Sat Oct 10, 2020 1:55 pm
by Mahaut
Hello,
I am sorry if this question has already been asked.
I saw a topic which looks like mine, unfortunately it is not exactly about what I'm asking.

I am discovering PlayMaker and Dialogue System, and I have some troubles with Unity. I would like to make a Mobile/SMS/Whatsapp conversation. Using the basic Templates, I do not find how to create different shape for the NPC and the PC sentences.
The expected behaviour would be: the NPC's sentences appear in a certain color block and the PC appear in another color (both differently aligned) stacked.
But currently, all the sentences appear in the same subtitle zone.

I do not know if Dialogue System is sufficient to do what I want ^^

Thank you for your help.

Re: Mobile UI

Posted: Sat Oct 10, 2020 2:28 pm
by Tony Li
Hi,

You may be interested in the Textline project available on the Dialogue System Extras page. It works line an SMS app.

Re: Mobile UI

Posted: Sat Oct 10, 2020 5:35 pm
by Mahaut
Hello Tony
Thanks a lot, I'm trying to reproduce the example, that's exactly what I was looking for!

Can I add a stupid question?
I can't visualize the Textline UI in unity scene. A hint explains that you have to set the Canvas Alpha to 1 but it does nothing.

Re: Mobile UI

Posted: Sat Oct 10, 2020 9:17 pm
by Tony Li
Hi,

The Dialogue Manager's Dialogue UI field points to a prefab. At runtime, it instantiates a copy of the prefab into the scene as a child of the Dialogue Manager's Canvas.

To see the UI, open the Textline Dialogue UI prefab.

If you're going to customize it, I recommend these steps:

1. Add an instance of the prefab to your Dialogue Manager's Canvas.

2. Assign this instance to the Dialogue Manager's Dialogue UI field.

3. Customize the instance. You can save it as a new prefab if you want.

This way you're not customizing the original prefab, so if you import an update to Textline it won't overwrite your customizations.

Re: Mobile UI

Posted: Sun Oct 11, 2020 3:09 pm
by Mahaut
Hello,
Thank you for all your help and explanation. It works \o/

Re: Mobile UI

Posted: Sun Oct 11, 2020 3:12 pm
by Tony Li
Glad to help!