Portraits override

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
davegagne
Posts: 17
Joined: Mon Nov 22, 2021 10:26 pm

Portraits override

Post by davegagne »

Hey everyone !

I've been professionally working with dialogue system on many games, but I'm new to the Dialogue System. I really enjoy the tool and I've been able to achieve what I'm looking for so far.

However, while I'm using the Focus Dialogue UI, I'm currently getting an issue where portraits for both NPC and Player does not seem to change whatever I do. I think I've set them within the prefab directly and it's broken something since whatever I put in the Actor's portrait sprites, it doesn't update. I've put back the default portraits in the prefab, but it doesn't change anything.

I know the screenshot isn't providing much info, but if this issue rings a bell to anyone, I'd gladly ask for you help and provide more info. Thanks !
Attachments
portrait-image.JPG
portrait-image.JPG (49.47 KiB) Viewed 230 times
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Portraits override

Post by Tony Li »

Hi,

Make sure the Portrait Image field is still connected:

focusPortraitUI.png
focusPortraitUI.png (58.72 KiB) Viewed 226 times

When the conversation starts, check the Console window for any errors or warnings.

You may also want to temporarily set the Dialogue Manager's Other Settings > Debug Level to Info. This will log detailed activity to the Console window. When a conversation starts, it will log a line like this:

Dialogue System: Starting conversation 'title' with actor=XXX and conversant=YYY

Make sure the GameObjects XXX and YYY are what you intend. (More info: Character GameObject Assignments)

Otherwise it's possible that it's associating the wrong actors, and maybe those actors don't have portraits assigned.
davegagne
Posts: 17
Joined: Mon Nov 22, 2021 10:26 pm

Re: Portraits override

Post by davegagne »

Thanks for the prompt answer. I must've broken something in the setup because everything looked fine in the debug, it was somehow not taking the portraits into account and fetching them from somewhere else. I scrapped the whole setup in the scene and did it from scratch. Worked exactly as intended now ! Thanks for the debug trick, I'm sure it will come in handy down the line.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Portraits override

Post by Tony Li »

Happy to help. Glad you got it working!
Post Reply