Page 1 of 1

Actor Portrait not Displaying

Posted: Fri Dec 30, 2022 5:12 am
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?

Re: Actor Portrait not Displaying

Posted: Fri Dec 30, 2022 9:08 am
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.

Re: Actor Portrait not Displaying

Posted: Sat Dec 31, 2022 6:31 am
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!

Re: Actor Portrait not Displaying

Posted: Sat Dec 31, 2022 8:28 am
by Tony Li
Glad you got it working! Happy New Year!