Page 1 of 1

Convert Bubble UI to Bark

Posted: Sat Feb 17, 2018 7:45 am
by kyuubi
Hi,
I am trying to get World space UI to work for some chars that just spit out random lines.
I have a bubble UI, where I had to add a Dialog UI component and assign the Panels, text elements etc. Works like a charm (the text blurs when the character moves but I suspect that's a Unity issue with Antialiasing and Worldspace).

This character is triggered via an Adventure Creator Action to open a dialog and I use a bunch of logic in the dialog to spit out random lines.

Thing is, I didn't know about the Bark functionality, which does what I want out of the box! So, I am trying to convert the Bubble UI to work for barks, but can't seem to make it work.

When I add a Bark Dialog component to the Bubble UI and change the Adventure Creator action to use Bark, nothing happens.

Any idea what I might be doing wrong? Is there a better way of doing this? I also tried to use the Bark UI prefab, put it as a child of the char, but didn't work either.

Thanks in advance!

Re: Convert Bubble UI to Bark

Posted: Sat Feb 17, 2018 10:27 am
by Tony Li
Hi,

It's much easier than that. Just add the prefab "Prefabs / Unity UI Prefabs / Generic / Generic Unity UI Bark UI" as a child of the char.

Then use the Dialogue System Bark action, and assign the char to the Actor field.

You don't need to use Bark Dialogue or anything else.

Make sure that works, and then customize the Generic Unity UI Bark UI to look the way you want.

Re: Convert Bubble UI to Bark

Posted: Sat Feb 17, 2018 8:32 pm
by kyuubi
Too easy, thanks!
By the way, is it possible to have a sequence of two nodes in a bark?
Sometimes the barks are a bit two long for one node only.
I have my start going off to multiple nodes, they rotate fine but they don't transition to their child nodes.
Hope that makes sense.
Thanks!

Re: Convert Bubble UI to Bark

Posted: Sat Feb 17, 2018 9:25 pm
by Tony Li
No, barks are intended to be single nodes. (One-liners.)

If you need to play more than one node, you can either play a conversation and use Bark Dialogue UI to play the lines through the character's Bark UI, or you can use Bark On Dialogue Event to play another bark when the first bark ends.

Re: Convert Bubble UI to Bark

Posted: Sun Feb 18, 2018 9:12 pm
by kyuubi
Hi Tony,
The main reason I was using barks was so that multiple dialogs could be running at the same time.
When I try to do that with a conversation I get an error saying the conversation is still going.
Is there any way to overcome that?
Thanks again.

Re: Convert Bubble UI to Bark

Posted: Sun Feb 18, 2018 9:56 pm
by Tony Li
Yes. On the Dialogue Manager, tick 'Allow Simultaneous Conversations'.