NPC Panel's Portrait Image Refuses to Activate

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
CodePrincess
Posts: 111
Joined: Thu Sep 27, 2018 11:06 pm

NPC Panel's Portrait Image Refuses to Activate

Post 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
Thank you so much for your help.

Oh! My stats!
Unity 2020.1.10f1
Adventure Creator 1.72.2
Dialogue System for Unity 2.2.12
User avatar
Tony Li
Posts: 21721
Joined: Thu Jul 18, 2013 1:27 pm

Re: NPC Panel's Portrait Image Refuses to Activate

Post 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?")?
CodePrincess
Posts: 111
Joined: Thu Sep 27, 2018 11:06 pm

Re: NPC Panel's Portrait Image Refuses to Activate

Post 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?
Thank you so much for your help.

Oh! My stats!
Unity 2020.1.10f1
Adventure Creator 1.72.2
Dialogue System for Unity 2.2.12
User avatar
Tony Li
Posts: 21721
Joined: Thu Jul 18, 2013 1:27 pm

Re: NPC Panel's Portrait Image Refuses to Activate

Post 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 460 times
CodePrincess
Posts: 111
Joined: Thu Sep 27, 2018 11:06 pm

Re: NPC Panel's Portrait Image Refuses to Activate

Post by CodePrincess »

... And it's fixed! That Inspector just keeps blindsiding me! :lol:

Thank you for saving the day again, Tony!
Thank you so much for your help.

Oh! My stats!
Unity 2020.1.10f1
Adventure Creator 1.72.2
Dialogue System for Unity 2.2.12
User avatar
Tony Li
Posts: 21721
Joined: Thu Jul 18, 2013 1:27 pm

Re: NPC Panel's Portrait Image Refuses to Activate

Post by Tony Li »

Glad to help!
Post Reply