Is it possible to create a button inside a label?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By anzorein

Hello everyone,

I’m working in a text based game and since all the “mechanics” will be related mostly to text and buttons, I was thinking about the possibility of, for example, when the label is displayed, have a button between words in order to press it or maybe choose from a list of options.
Example image:

The only way I can think of doing it is by manually placing the button in where the text would have a “space”, but that would mean iterating a number of times until I get the position right, and this isn’t even considering different resolutions, which I don’t know if it would hold. Maybe using the anchors?

Anyways, any idea if there is a way to do this pragmatically?


:bust_in_silhouette: Reply From: anzorein

Updating this post since the solution has been provided in a reddit thread:

Link to reddit post