Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Ah right, I should probably make it disable rendering in this situation... I think the reason it does this is because of how STM evaluates text for auto-wrapping. If the width is 0.001, it'll still put one letter on every line, even if it goes out of bounds, to prevent it from looping forever... so when it's negative, I must have set it to just render the whole thing anyway... so I think disabling the renderer when the width is < 0 is a good solution! I'll mess around with this myself soon and see if I can get it working automatically in the actual build.

Super! I think I got it working with the disabled thing! Also, noticed that setting a text enables the renderer even if it's disabled? o.o

Woah, do you mean... are you disabling the STM component, gameobject, or the mesh renderer itself? If it's the actual mesh renderer, I probably just have some code to make sure it's active, and I hope the other things work correctly... If not, I'll for sure have to give this a peek soon.

(1 edit)

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!