I want to embed other UI in the text

All about user interface, be it customizing built-in UIs or adding new ones.
Post Reply
Posts: 1
Joined: 05 Mar 2023 11:17

I want to embed other UI in the text

Post by mina_VRCh »

I want to modify the text display system to embed other UI in the text. Specifically, I'm trying to display buttons created by Unity's UI system along with the text.

Like this: Lorem ipsum dolor [Button 1] [Button 2] sit amet
(actually the buttons are a bit more complex)

I somehow expect that this can be achieved using a custom text printer and custom tags.
However, I am not quite sure how exactly.

Is it possible to make it work like this?

Posts: 228
Joined: 01 Aug 2020 08:25

Re: I want to embed other UI in the text

Post by idaot »

I suggest looking into TMPro sprites (https://docs.unity3d.com/Packages/com.u ... rites.html) which are compatible with TMPro printers (just be sure to add the TMProRevealableText material to the sprites to apply the revealable effect on them) as well as the text tag system (https://naninovel.com/guide/unlockable-items.html#tips) which you can modify (via the On Tip Clicked event) to serve another purpose. I tested using sprites to show tips and it worked fine.

Post Reply