How can I display multiple actors registered in Conversations in the UI?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
yuyuko
Posts: 4
Joined: Fri Jan 19, 2024 7:03 am

How can I display multiple actors registered in Conversations in the UI?

Post by yuyuko »

I set two objects in the SubTilte Panels of the object to which StandardDialogueUI is attached,
I specified Actor for both Actor and Conversant, but it did not resolve.
User avatar
Tony Li
Posts: 23259
Joined: Thu Jul 18, 2013 1:27 pm

Re: How can I display multiple actors registered in Conversations in the UI?

Post by Tony Li »

Hi,

You do not need to specify actors in the StandardDialogueUI's subtitle panels.

Assign your actors in the conversation:

multipleActorsInConversation.png
multipleActorsInConversation.png (49.15 KiB) Viewed 3642 times

The actors will appear in the dialogue UI as appropriate. If the actor's Is Player checkbox is ticked, it will appear in the Default PC Subtitle Panel. If the actor's Is Player checkbox is NOT ticked, it will appear in the Default NPC Subtitle Panel -- unless you have added a Dialogue Actor component to the actor's GameObject. In this case, you can specify a subtitle panel number in the Dialogue Actor component.
yuyuko
Posts: 4
Joined: Fri Jan 19, 2024 7:03 am

Re: How can I display multiple actors registered in Conversations in the UI?

Post by yuyuko »

under.png
under.png (12.93 KiB) Viewed 3628 times
Thank you very much.
However, I do not know how to set it up.

How can I have two different names displayed, as shown in the lower right corner?
In my environment it shows the same name.
User avatar
Tony Li
Posts: 23259
Joined: Thu Jul 18, 2013 1:27 pm

Re: How can I display multiple actors registered in Conversations in the UI?

Post by Tony Li »

Hi,

Add your actors here:

addActors.png
addActors.png (25.22 KiB) Viewed 3624 times

To assign the two primary participants:

assignPrimaryParticipants.png
assignPrimaryParticipants.png (129.66 KiB) Viewed 3624 times

To assign other participants:

assignOtherParticipant.png
assignOtherParticipant.png (73.9 KiB) Viewed 3624 times
yuyuko
Posts: 4
Joined: Fri Jan 19, 2024 7:03 am

Re: How can I display multiple actors registered in Conversations in the UI?

Post by yuyuko »

Thank you very much.
However, it was not resolved.

The UI we are using has StandardDialogueUI attached to it and has references to NPC Subtitle Panel and PC Subtitle Panel.
I created three actors “player”, “npc” and “another npc” and only “Player” has the isPlayer checkbox.


Then create a new Coversation in Coversations,
Then, create a new Coversation in Coversations and implement the following three patterns in Actor and Conversant.

Actor:player
Conversant:npc

Actor:npc
Conversant:player

Actor:npc
Conversant:another npc

In all of these cases, no actor is displayed at the same time.


If the actor is an Actor:player, the node will be blue and the PC Subtitle Panel will be active.
If the actor is Actor:npc, the node will be gray and the NPC Subtitle Panel will be active.
However, the PC Subtitle Panel and the NPC Subtitle Panel are never active at the same time, so you will never see two actors at the same time.
User avatar
Tony Li
Posts: 23259
Joined: Thu Jul 18, 2013 1:27 pm

Re: How can I display multiple actors registered in Conversations in the UI?

Post by Tony Li »

Hi,

Inspect the subtitle panels and set their Visibility dropdown to Always From Start or Always Once Shown. This will keep the subtitle panel visible even when an actor is speaking through a different subtitle panel.
yuyuko
Posts: 4
Joined: Fri Jan 19, 2024 7:03 am

Re: How can I display multiple actors registered in Conversations in the UI?

Post by yuyuko »

Thank you. I have solved this problem.
User avatar
Tony Li
Posts: 23259
Joined: Thu Jul 18, 2013 1:27 pm

Re: How can I display multiple actors registered in Conversations in the UI?

Post by Tony Li »

Great! Glad to help.
Post Reply