Adding images of player and NPC

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Adding images of player and NPC

Post by hrohibil »

Hello Tony

How do i a simple thing as NPC image and player image?

I tried but in the game view its empty..


User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Adding images of player and NPC

Post by Tony Li »

Hi,

Assign your portrait images to the actors' Portrait Sprites:

actorPortraits.png
actorPortraits.png (80.11 KiB) Viewed 422 times

Then make sure your subtitle panel's Portrait Image is assigned:

portraitImage.png
portraitImage.png (283.45 KiB) Viewed 422 times

If that doesn't work, first look for any errors or warnings in your Console window.

If there are no errors or warnings, make sure the right dialogue UI is assigned to your Dialogue Manager's Display Settings > Dialogue UI, and that you've checked Character GameObject Assignments.
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Adding images of player and NPC

Post by hrohibil »

Thank you Tony

I was editing or adding my image in the prefab rather than the editor

You are king..
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Adding images of player and NPC

Post by Tony Li »

Happy to help!
Post Reply