Skip to main content

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

I'm getting strange results when testing.  If I drop a prefab with a moderate amount of text into the scene, I get "normal" lag until I edit the text, at which point it starts locking up.  Then if I unpack the prefab, it's back to normal.  The more text I add to the prefab (beyond the amount initially there), the slower it gets.  I recorded a video demonstrating this - do you have a support email I can send it to?

The one consistent thing is:  whenever the text in the STM text box turns bold, it starts locking up unity.  When I edit the text as described above, it turns bold and this happens.  For my tutorial prefab, I notice it's already bold when I try to edit it, meaning everything is super slow right from the start (even just opening it in prefab mode).

As for the auto pagination script: I couldn't get it to work.  If I set it to auto it does nothing.  If I click manual setup, it creates one empty STM object.  I couldn't get it to overflow text into other objects no matter how much text I added.

Hm, so it's when you have a prefab, and then change the text in the scene to be different... When I do that from the state of the .gif above (clicking the the first object, editing text) The text does turn bold, but I'm not seeing any performance issues quite yet, so maybe it's a version thing...?


I did just find and fix another bug that could potentially cause a UI layout to rebuild far too often (or not often enough), so there's a slim chance *that* could be the cause, but I didn't apply it to my test project yet or anything, just another bug I fixed.



The autosplit script needs "STMPagination" in your project, which can be found in the sample scenes - I don't think the script would have compiled without it, but if it's creating just one empty object, it's either set to only create one with one setting or another, or an error is happening and it's stopping. Could I see your inspector? Mine looks like this:



It's really just meant for setting up STMPagination in a "page" format like this, the STMPagination script can be used on its own to have overflow text go to another STM component, like once the objects have been laid out, the script could be deleted. I wasn't able to reproduce an error when adding the component to an STM object on my end, but it's an editor script I just wrote, so I might not be accounting for every use-case quite yet.