Hide portrait with command in specific part of dialogue

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Nippy
Posts: 12
Joined: Mon Mar 22, 2021 7:33 pm

Hide portrait with command in specific part of dialogue

Post 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?
User avatar
Tony Li
Posts: 21984
Joined: Thu Jul 18, 2013 1:27 pm

Re: Hide portrait with command in specific part of dialogue

Post 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.
Post Reply