Page 1 of 1

How to display item icons next to responses?

Posted: Fri Jun 30, 2023 1:04 pm
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!

Re: How to display item icons next to responses?

Posted: Fri Jun 30, 2023 2:38 pm
by Tony Li
Hi,

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