Allow for click detection (mouse picking) of a TextSpan #17477
Labels
A-Picking
Pointing at and selecting objects of all sorts
A-Text
Rendering and layout for characters
C-Feature
A new feature, making something new possible
D-Complex
Quite challenging from either a design or technical perspective. Ask for help!
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
X-Uncontroversial
This work is generally agreed upon
What problem does this solve or what need does it fill?
I am rendering a Text element with many child TextNodes , some of the children are 'links' so they have a component on them that has the destination when clicked. However, it seems that the Interaction component doesnt work with a TextSpan in 0.15 . ?
What solution would you like?
Some way, with Interaction or otherwise, to be able to detect a click (trigger on an entity on mouse click) on a text span
I have tried to attach a Node and Button component to the text span but that totally breaks the text rendering.
The text was updated successfully, but these errors were encountered: