TextBlock / TextMeshPro In-line Sprites #179
Replies: 3 comments 3 replies
-
The short answer to your question is: no, this is currently not supported. To pull a quote from the TextBlock Documentation:
And in-line sprites with TMP use the And, while this could get clunky if you wanted to add sprites in the middle of text, if you wanted a workaround to show icons at the end of your text (and automatically account for changes to the text, font size, etc), you could: set the |
Beta Was this translation helpful? Give feedback.
-
Thanks for the input! I'd definitely like it as a feature request if possible. We've definitely had to use the clunky workaround before in an old project using regular ugui text before textmesh pro was the standard in ugui, but we frequently have buttons in the middle of text and even in multiline text such as in tutorial prompts, just to make it extra clunky again haha. I'm aware textmesh pro has the ability to give the position of specific characters in its generated mesh, so my thinking for now knowing this isn't a bug is that I suppose I can place a special character and get it's position, and place a sprite over top as a bit of a workaround. However if Nova were to add native support for textmesh pro's in-line sprites that would be an amazing feature for us in the future. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I had to add support for TextMeshPro sprites for my project. I dumped the diff of the changes in the text file below. If I made your day a little better, drop by https://snowfall.games/ and sign up for the newsletter or something. Cheers! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Are in-line sprites, just the base functionality of them in TextMeshPro, supported in Nova's TextBlocks?
Currently when I try to use them, they show up completely solid color, like below.
(Regular in-world text mesh pro object on the left, and a Nova TextBlock on the right)
The text in these is simply
Test <sprite name="right1">
where right1 is the button image there.Beta Was this translation helpful? Give feedback.
All reactions