Page 1 of 1

Hide portrait with command in specific part of dialogue

Posted: Wed Jun 16, 2021 2:12 pm
by Nippy
Hey, is there a way to hide the portrait with a command for a dialogue path?
In my game you can interact with object like "Use bed" - dialogue starts - "Do you really want to sleep?" and here the dialogue portrait opens, but how to avoid this, while in other dialogues I still keep it on?

Re: Hide portrait with command in specific part of dialogue

Posted: Wed Jun 16, 2021 6:02 pm
by Tony Li
Hi,

Two ways (take your choice):

1. Set up a separate subtitle panel without a Portrait Image. Add it to the StandardDialogueUI component's Subtitle Panels list. It will have a panel number (0, 1, 2, etc.). Tell the bed to use that panel number by including the [panel=#] markup tag in the Dialogue Text or adding a Dialogue Actor component to the bed's GameObject and setting its subtitle panel number.

2. Or inspect the bed actor in the Dialogue Editor and assign a transparent image as its portrait.