Actor Portrait not Displaying

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Mackerel_Sky
Posts: 111
Joined: Mon Apr 08, 2019 8:01 am

Actor Portrait not Displaying

Post by Mackerel_Sky »

Hi Tony,

I'm not sure what I changed but for some reason most of my actor's portraits are no longer displaying on screen.

The actors all have portraits set up like this.
Image

I use the SetPortrait sequencer command to assign portraits.

This command works:
Image

However, this one doesn't.
Image

Opening the portrait from the Editor window seems to indicate that the command hasn't gone through (shows a blank image), but I changed the actor name to somethiing wrong just to check, and it returned an error, so I'm pretty sure the sequencer is doing something.

Everything was running as expected a couple of weeks ago and I'm fairly certain I haven't changed anything within these conversations, so I'm not sure what's going on.

Would you have any idea as to where to start debugging?
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Actor Portrait not Displaying

Post by Tony Li »

Hi,

You could try setting the Dialogue Manager GameObject's Other Settings > Debug Level to Info. This will log info to the Console, including details when the SetPortrait() sequencer command runs.

Also make sure the correct dialogue database is assigned to your Dialogue Manager's Initial Database field.

If that doesn't help, can you send a reproduction project to tony (at) pixelcrushers.com?

Or you could open Sequencer.cs in your code editor, put a breakpoint in the HandleSetPortraitInternally() method, and step through it to see what's going on.
Mackerel_Sky
Posts: 111
Joined: Mon Apr 08, 2019 8:01 am

Re: Actor Portrait not Displaying

Post by Mackerel_Sky »

Hi Tony,

Thanks for this - it turns out the actors in the conversation got switched around somehow so it was the player talking.

Hope you have a safe and happy new year!
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Actor Portrait not Displaying

Post by Tony Li »

Glad you got it working! Happy New Year!
Post Reply