Page 1 of 1

NPC Portrait Image Behaves Oddly.

Posted: Mon Oct 01, 2018 11:47 pm
by CodePrincess
Hello, everyone?

Has this ever happened to you?
beforeplay.png
beforeplay.png (240.12 KiB) Viewed 956 times


Things are looking good...
beforetrigger.png
beforetrigger.png (227.69 KiB) Viewed 955 times


Then you trigger a conversation and the NPC portrait image just does this:
aftertrigger.png
aftertrigger.png (235.28 KiB) Viewed 955 times


And once you exit play mode, it acts like nothing happened.

I can't figure out what's going on. Any thoughts would be most helpful.
Take care and thank you for taking the time to read this post!

Re: NPC Portrait Image Behaves Oddly.

Posted: Tue Oct 02, 2018 10:25 am
by Tony Li
Hi,

Have you assigned an image to the NPC actor in your dialogue database? (Remember that the image must be imported as Texture Type = Editor GUI and Legacy GUI.)

If the currently-speaking actor has no image, the dialogue UI will use a blank for the portrait image. That's the white box in your screenshot.

The text "NPC" in your screenshot is from the NPC Portrait Name.

If you don't want to use portrait images, you can remove the NPC Portrait Image and PC Portrait Image GameObjects.

Re: NPC Portrait Image Behaves Oddly.

Posted: Tue Oct 02, 2018 6:57 pm
by CodePrincess
Ahh, what a rookie mistake I made. Thank you so much! :D

Re: NPC Portrait Image Behaves Oddly.

Posted: Tue Oct 02, 2018 8:06 pm
by Tony Li
Happy to help! The Dialogue System is pretty big, so if any other questions come up, please ask.

Re: NPC Portrait Image Behaves Oddly.

Posted: Wed Oct 03, 2018 5:37 am
by Alatriste
Tony Li wrote: Tue Oct 02, 2018 10:25 am Hi,

Have you assigned an image to the NPC actor in your dialogue database? (Remember that the image must be imported as Texture Type = Editor GUI and Legacy GUI.)
Hi Tony,

I usually set up my portraits as sprites. What could be the side effects of doing it this way?

Thanks!

Re: NPC Portrait Image Behaves Oddly.

Posted: Wed Oct 03, 2018 8:20 am
by Tony Li
Hi,
Alatriste wrote: Wed Oct 03, 2018 5:37 amI usually set up my portraits as sprites. What could be the side effects of doing it this way?
If it works, that's fine. Some dialogue UI systems, such as the legacy GUI system, expect it to be set to Legacy GUI. All of the systems can convert it to Sprite if that's what the system uses. So Legacy GUI guarantees that it will always work with any dialogue UI system.