how can I add an image to the dialog

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Rekveem
Posts: 1
Joined: Tue May 14, 2024 8:27 am

how can I add an image to the dialog

Post by Rekveem »

I wanted to create an "Image" variable with a link to an image, and inside the conversational block, in the "Dialogue text" field, enter "[var=image] to output an image inside the text block. Is this possible? Or there is another way. In this case, I did not understand how to create a "File" variable and specify the path to the desired image.
What i want (attached pictures):
Attachments
image-1.png
image-1.png (72.22 KiB) Viewed 184 times
image-2.png
image-2.png (9.13 KiB) Viewed 184 times
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: how can I add an image to the dialog

Post by Tony Li »

Hi,

The easiest way is to set up your dialogue UI with TextMesh Pro, and then use a <sprite> tag in your dialogue text.
Post Reply