Changing Subtitle Panel Image Sprite during Runtime

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
siegrain320
Posts: 2
Joined: Tue Sep 27, 2022 9:51 am

Changing Subtitle Panel Image Sprite during Runtime

Post by siegrain320 »

Hi, I'm not sure if this has been asked before but couldn't find the topic after a quick search.

So I'm currently trying to use the Bubble Subtitle UI for my characters' dialogues and wondering what would be the best way to implement different bubble assets according to the dialogue that would be displayed(e.g. spiked bubbles for anger, cloud bubbles for thoughts, etc.)

I'm relatively new to this asset and would appreciate if someone has done this before or could point me towards the right direction.

Thanks! :D
User avatar
Tony Li
Posts: 21970
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing Subtitle Panel Image Sprite during Runtime

Post by Tony Li »

Hi,

You could do something similar to this post. Here's an example scene:

DS_DifferentBubblesExample_2022-09-27.unitypackage
siegrain320
Posts: 2
Joined: Tue Sep 27, 2022 9:51 am

Re: Changing Subtitle Panel Image Sprite during Runtime

Post by siegrain320 »

Hi Tony,

This seems like exactly the thing I'm looking for.

Thanks for the reply! :D
User avatar
Tony Li
Posts: 21970
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing Subtitle Panel Image Sprite during Runtime

Post by Tony Li »

Glad to help!
Post Reply