Page 1 of 1

NPC Panel's Portrait Image Refuses to Activate

Posted: Fri Nov 06, 2020 8:59 pm
by CodePrincess
Good evening, everyone!

So this one's been bothering me for a while:

Whenever I run a conversation, The NPC Conversation Panel's Portrait Image loses its source image and doesn't activate
with the rest of the conversation:

https://www.mediafire.com/view/0t1bx09m ... e.png/file

Here's what Portrait Image looks like when in edit mode, as well as the Adventure Creator action script that triggers the conversation, which contains no commands that would effect NPC Panel's Portrait Image:

https://www.mediafire.com/view/37opsd08 ... o.png/file

I also don't have any custom scripts that would affect any Dialogue System objects.

As far as stats go, I'm on:

Unity 2020.1.10f1
Adventure Creator 1.72.2
Dialogue System for Unity 2.2.12

Re: NPC Panel's Portrait Image Refuses to Activate

Posted: Fri Nov 06, 2020 9:44 pm
by Tony Li
Hi,

Is the Portrait Image GameObject assigned to the Standard UI Subtitle Panel component? I assume it is, since the panel appears to be deactivating the portrait. Then again, if you've set the portrait inactive at design time and the panel isn't activating it, then it's probably not assigned.

Assuming it's assigned, is a portrait image assigned to the Maya actor (the one who's speaking the line "Hey, Nick?")?

Re: NPC Panel's Portrait Image Refuses to Activate

Posted: Sat Nov 07, 2020 12:28 pm
by CodePrincess
Is the Portrait Image GameObject assigned to the Standard UI Subtitle Panel component?
The Portrait Image is assigned to the Standard UI Subtitle Panel, and is assigned active at design time.

https://www.mediafire.com/view/8df0pujq ... t.png/file
Assuming it's assigned, is a portrait image assigned to the Maya actor (the one who's speaking the line "Hey, Nick?")?
I didn't see any way to assign a portrait to Maya in the Dialogue System Actors' tab. Do I need to tamper with the templates, or write a script to do that?

Re: NPC Panel's Portrait Image Refuses to Activate

Posted: Sat Nov 07, 2020 4:26 pm
by Tony Li
Hi,

In the Dialogue Editor, inspect the actor. In the Inspector view, expand Portrait Sprites and assign a sprite:

assignPortrait.png
assignPortrait.png (55 KiB) Viewed 461 times

Re: NPC Panel's Portrait Image Refuses to Activate

Posted: Sat Nov 07, 2020 5:45 pm
by CodePrincess
... And it's fixed! That Inspector just keeps blindsiding me! :lol:

Thank you for saving the day again, Tony!

Re: NPC Panel's Portrait Image Refuses to Activate

Posted: Sat Nov 07, 2020 7:00 pm
by Tony Li
Glad to help!