This solved a problem for us! Good find :-) But combining this with a layout group seems to place the component weirdly! I think it's because the placement is done BEFORE the enable on SuperTextMesh now. Is there a SEO that is like the "golden" value? :-P
Recent community posts
Found why it rendered when disabled, I used Rebuild AFTER I disabled the STM - component... Which I guess updates the mesh renderer?
EDIT: removed Rebuild and did stm.text = "test" which even if the component is disabled renders the text!
Just noticed a not-so-weird situation!
I'm animating a rect-box and have a STM component set to fit the box with some padding. As the animation set the box to be smaller than the padding I end up with a negative rect-transform width which causes STM to render the text by default!
I could make a script that just forces the rect to not be negative or disable the STM component when the width is smaller than 0, thought I'd just post this in-case there is already a "fix" or similar solution :-)
STM saved our project btw <3