Hey.
Dunno if it of any help to anyone, swapping to different font, or luckily generating atlas manually sdf16 solved the issue in the vid. But maybe some edge case bug in the making.
Font is google free font Anton regular.
txmpro 3.0.6
What is happening is actually quite complex. On hover the thing get’s new sprite with green bg, it’s scaled up. And also gets it’s own canvas component (inside GO as is shown at the end of the vid) and it’s own raycaster.
On pointer exit it goes back to default and canvas and it’s raycaster are destroyed (on multiple frames, you can’t do it at once).
Canvas is needed for proper effect of sprite being rendered on top, since it’s UI you can’t access sorting order of a sprite directly, unless you give it canvas component. And moving it in hierarchy is not an option because it’s inside layout group.
Also somehow bug doesn’t trigger on first pass with the mouse, but only on second and after that.
Removing “canvas adding/removing” part of the code, doesn’t seem to produce the bug at all.
I just hope that no more random letters disappear for no reason and carry on ¯_(ツ)_/¯
Since you are using multiple canvases with some that appear to be nested, make sure the “Additional Shader Channels” are all set to “Texcoord1, Normal and Tangent”.
Is the “g” contain in the same font asset / atlas texture? It does not appear to be coming from a fallback.
Shader channels are set as you mentioned. (accidentally by default, shaders are way beyond my pay grade). Although i had an issue where shader sliders on font were greyed out and unclicable in editor, because of the mask component somewhere in the tree. I just disable the mask, setup the sliders and enable mask again…^^
Font asset was made by dragging in a font, and shift+alt+f12 or something like that. I doubt it has multiple atlases since i’m pretty sure i just have a couple of strings, probably not even full english alphabet.
The only setting i might have modified is bold weight, but it’s the first thing i checked by setting it back to 0.75, and it didn’t seem to have an effect.
Sorry that i can’t provide more details how to reproduce the bug, i’m very new, and i don’t know what i’m doing most of the time :). For instance i dragged in the font (again from google open font…), setup dynamic atlas with shortcut and for some reason i didn’t have some English letters. Like they were not showing at all. So i quickly solved it by building atlas manually, extended ascii for good measure, it fixed it, and i never investigated more…probably something is wrong on my machine, or my setup. For instance I’m probably in 1% of ppl who has disabled reload domain (project setting-> editor → enter playmode) to get rid of the delay when you press play, could be related, but probably not…
Thanks for the amazing asset though :).