Page 1 of 1
Selectable Text or Phrases in Dialogue?
Posted: Thu May 08, 2025 7:54 pm
by Hanohi Games
Hi everyone. Is there a baked-in way to make certain text phrases selectable within the dialogue? I would like to eventually build a drag and drop system for text within the subtitle panels that I could move into a different container (like a notebook or another character). I was thinking I would just tag it and then somehow make it selectable, but I was wondering if there was something built-in?
Re: Selectable Text or Phrases in Dialogue?
Posted: Thu May 08, 2025 8:08 pm
by Tony Li
Hi,
That isn't built in, but you can use TextMesh Pro
<link> tags. Please see
this post for examples.
The
Dialogue System Extras page has an older example called Keywords (
direct download) that also uses <link> tags. It uses the older UnityUIDialogueUI dialogue UI scripts, but that's beside the point. You can do the same with StandardDialogueUI. If you check out this example, play the version in the TMP Version subfolder.
Re: Selectable Text or Phrases in Dialogue?
Posted: Thu May 08, 2025 9:12 pm
by Hanohi Games
Thanks! Those are perfect!
Re: Selectable Text or Phrases in Dialogue?
Posted: Thu May 08, 2025 9:18 pm
by Tony Li
Glad to help!