Page 1 of 1

Hide NPC Portrait Name when conversant / actor is None

Posted: Tue Jul 16, 2024 6:43 pm
by rmagn
Hi,
i would like to achieve this
img

where my character is reading a random book on a shelf , without displaying the portrait name.
right now if i set the conversant to None, it displays a blank portrait name.
how can i hide/disable the portrait name only when i set the conversant to none?

Re: Hide NPC Portrait Name when conversant / actor is None

Posted: Tue Jul 16, 2024 11:58 pm
by Tony Li
Hi,

Two ways:

1. Add a subtitle panel without portrait name/image elements to your dialogue UI. Assign it to the Standard Dialogue UI component's Conversation UI Elements > Subtitle Panels list and make a note of its element number. This is its panel number. Then either:
  • Include "[panel=#]" to the book's dialogue text to show it in that panel, where # is the panel number
  • Or add a Dialogue Actor component to the book GameObject (if one exists, or create an empty one) and set its Dialogue UI Settings > Subtitle Panel Number to the panel number.
2. Or create an entirely new dialogue UI for books that doesn't have portrait name/image elements. Assign it to the book's Dialogue System Trigger > Actions > Start Conversation > Override Dialogue UI field.