Hide NPC Portrait Name when conversant / actor is None

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
rmagn
Posts: 21
Joined: Tue Jul 09, 2024 6:05 am

Hide NPC Portrait Name when conversant / actor is None

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

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

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