Skip to main content

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

[TO DO / temp solution] Text rendering as boxes in game view

A topic by Friend Factory created Mar 27, 2018 Views: 563 Replies: 7
Viewing posts 1 to 8
(1 edit)

Hello,

Bought STM yesterday, keen to use it but ran into this problem.

When I use screen space - overlay (which I need to), the text renders as below, which is far from ideal.

I can't seem to figure out any rhyme or reason to it, sometimes it works, sometimes it doesn't. In a separate project the text was broken as below, and now it is working. 

Is there a known cause of this?

Kindest,

Mark

Developer

Hmm, never seen this myself personally, and I was experimenting with different canvas modes last week. Please email me through my website w/ your invoice no., and I'll send you the latest development build I have! There's a chance this problem is already fixed in the most recent version, but either way I'll only be able to debug it from that most recent version anyway!

Hope so, emailed.


Mark

Developer (1 edit)

Updating this publicly so I don't forget:


Turns out there's an issue with the current UI shaders where if your scene/canvas has too many elements with different alpha shaders on em, this bug happens (I think that's the cause, anyway). Unity's included GUI/Text Shader seems to render fine so that can be used for now, but I'm going to have to update the current shaders to work a bit more like unity's GUI/Text Shader.

So... until I rewrite the shaders, you can either use unity's included GUI/Text shader, reduce the amount of alpha elements/shaders in your UI, or don't use Unity UI with STM altogether. Thank you for your patience, everyone!

I just updated to the latest build and got this issue as well. Is there a way I can just download a previous version of STM? It worked fine before I updated.

Developer

If you got it from itch, I just updated the store page to allow a download of v1.6.3 again. If you got it from the asset store, please DM me with your invoice number and I'll send the .unitypackage. This is very good debugging info btw, I'll try to figure out what changed between the two versions! The only thing that *should* have changed was the addition of overridden index quads, but that shouldn't be effecting this... sorry for the inconvenience!

(1 edit)

I imported 1.6.3 and now I'm getting some errors.

Assets/Clavian/SuperTextMesh/Sample/ExampleScripts/STMPreParse.cs(6,20): error CS0246: The type or namespace name `STMTextContainer' could not be found. Are you missing an assembly reference?

Assets/Clavian/SuperTextMesh/Sample/ExampleScripts/STMPreParse2.cs(6,20): error CS0246: The type or namespace name `STMTextContainer' could not be found. Are you missing an assembly reference?

EDIT: I imported the scripts folder from the current build so I guess I'm Frankensteining some bits here but so far everything seems to be working normal. I'll post again if anything goes wrong. Thanks for uploading the previous build.

Developer (1 edit)

Yeah, STMTextContainer is a new class  in 1.7, so those new scripts wouldn't work w/o it. I really wish Unity's importer would tell you when a file no longer exists in a new .unitypackage, but it just keeps adding/replacing even if a file's name has changed.