I want to add multiple NPCs to the SMS UI

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
swang
Posts: 19
Joined: Sat May 13, 2023 10:28 pm

I want to add multiple NPCs to the SMS UI

Post by swang »

I want to create multiple actors and designate the location of each bubble.
I'd like to set character A to only create speech bubbles on the left side, and character B to create speech bubbles only on the right side.

![image](https://github.com/kaYeonTan/Sort/asset ... 1e7202fee0)

I set all the values, but they are output to one panel without being divided and played.

![image](https://github.com/kaYeonTan/Sort/asset ... 88c764b9db)
Last edited by swang on Thu May 18, 2023 4:41 am, edited 1 time in total.
swang
Posts: 19
Joined: Sat May 13, 2023 10:28 pm

Re: I want to add multiple NPCs to the SMS UI

Post by swang »

![image](https://github.com/kaYeonTan/Sort/asset ... 88c764b9db)

I set all the values, but they are output to one panel without being divided and played.
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: I want to add multiple NPCs to the SMS UI

Post by Tony Li »

Hi,

NPC Message Template_R is element number 2 in your Standard Dialogue UI > Conversation UI Elements > Subtitle Panels list. This is its panel number.

To tell a specific NPC to use NPC Message Template_R, add a Dialogue Actor component to that NPC's GameObject. (If the NPC doesn't have a GameObject, you can create an empty GameObject for it.) Set Dialogue UI Settings > Subtitle Panel number to 2.
swang
Posts: 19
Joined: Sat May 13, 2023 10:28 pm

Re: I want to add multiple NPCs to the SMS UI

Post by swang »

thank you Tony Li You are my lifesaver.🥺🥺
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: I want to add multiple NPCs to the SMS UI

Post by Tony Li »

Glad to help!
Post Reply