Convert Bubble UI to Bark

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
kyuubi
Posts: 52
Joined: Fri May 27, 2016 11:30 pm

Convert Bubble UI to Bark

Post 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!
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Convert Bubble UI to Bark

Post 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.
User avatar
kyuubi
Posts: 52
Joined: Fri May 27, 2016 11:30 pm

Re: Convert Bubble UI to Bark

Post 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!
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Convert Bubble UI to Bark

Post 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.
User avatar
kyuubi
Posts: 52
Joined: Fri May 27, 2016 11:30 pm

Re: Convert Bubble UI to Bark

Post 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.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Convert Bubble UI to Bark

Post by Tony Li »

Yes. On the Dialogue Manager, tick 'Allow Simultaneous Conversations'.
Post Reply