How to display item icons next to responses?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Cynical-C
Posts: 4
Joined: Fri Jun 30, 2023 12:55 pm

How to display item icons next to responses?

Post by Cynical-C »

I have a game that has an inventory system. When an NPC has a response that requires the use of an item in the inventory, I would like for that item to appear as an icon on the response itself.

For example

NPC: Did you find the key to the lock?
Response 1 : [picture of key] Yes I did. Here you go.
Response 2 : [picture of bolt cutters] No, but will these work?
Response 3: I didn't find it yet.

I'm just getting started with dialogue system for Unity so apologies if this is covered elsewhere.
Thanks in advance for your help!
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to display item icons next to responses?

Post by Tony Li »

Hi,

Use TextMesh Pro (see TextMesh Pro Support) and <sprite> tags.
Post Reply