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 !
Portraits override
Portraits override
- Attachments
-
- portrait-image.JPG (49.47 KiB) Viewed 231 times
Re: Portraits override
Hi,
Make sure the Portrait Image field is still connected:
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.
Make sure the Portrait Image field is still connected:
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.
Re: Portraits override
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.
Re: Portraits override
Happy to help. Glad you got it working!