SetPortrait not updating the portrait

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
cind7750
Posts: 4
Joined: Fri May 20, 2022 9:01 pm

SetPortrait not updating the portrait

Post by cind7750 »

Hello, I am new to using dialogue system
I tried to use sequencer command SetPortrait() but the portrait updates after I start the conversation again
there are few more dialogue entries after the entry with the command
Am I doing anything wrong?
Image
Attachments
Screen Shot 2022-05-20 at 9.08.10 PM (2).png
Screen Shot 2022-05-20 at 9.08.10 PM (2).png (14.61 KiB) Viewed 413 times
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

Re: SetPortrait not updating the portrait

Post by Tony Li »

Hi,

That should work. Does the Player actor have two portrait images?

In your conversation, is the Player actor assigned as the conversation's actor? And is the Player actor assigned to all of the dialogue entry nodes that should be spoken by the player?

If so, then is the GameObject that represents the Player actor being used as the Dialogue System Trigger's Conversation Actor? (See Character GameObject Assignments for details.)

Are there any errors or warnings in the Console window?
cind7750
Posts: 4
Joined: Fri May 20, 2022 9:01 pm

Re: SetPortrait not updating the portrait

Post by cind7750 »

Hi,

I restarted the project and now it works as intended!
Thanks for helping me though
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

Re: SetPortrait not updating the portrait

Post by Tony Li »

I'm glad it's working now. Sounds like the Unity editor had a temporary bug.
Post Reply