User runtime option for subtitles

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
dasjlm
Posts: 11
Joined: Wed Nov 22, 2017 12:12 pm

User runtime option for subtitles

Post by dasjlm »

Just wondering if there is an easy way to allow users to turn on/off subtitles and if so can I force some subtitles to be displayed even if user turned off.

ie: I want to give user control over subtitles, but in some cases I don't want to put out a subtitle in case player barks a thought while other npc's are close by.

Thanks John
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: User runtime option for subtitles

Post by Tony Li »

Hi John,

To toggle subtitles, set DialogueManager.DisplaySettings.subtitleSettings.showNPCSubtitleDuringLine and/or showPCSubtitlesDuringLine bool properties.

The Unity UI Bark UI component has a Text Display Setting value. You can set this to Show, Hide, or Same As Dialogue Manager. To force the character's bark subtitles to be visible, set it to Show. To use the player's current setting, set it to Same As Dialogue Manager.
dasjlm
Posts: 11
Joined: Wed Nov 22, 2017 12:12 pm

Re: User runtime option for subtitles

Post by dasjlm »

Thanks. Should do the trick.
John
Post Reply