Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

[Solved] Crash when using Quads with UI Super Text Mesh

A topic by ClementCasaRara created Feb 22, 2017 Views: 1,973 Replies: 33
Viewing posts 21 to 26 of 26 · Previous page · First page
Developer

Oh boy, that's a new one... Is anything similar happening with the non-UI mesh? If not, then it's gotta be either Unity UI itself, or the code that sets the materials.

The non UI one works as before.

Got it!
On the canvas containing the SuperTextMesh, make sure that Additional Shader Channels has at least TexCoord1.
I guess that solves it all! \o/

Thanks for the support.

Developer (4 edits)

Testing this out more in-depth now!

The additional shader channels variable seems to have been added in Unity 5.6, so this should fix it for that. But even though I'm following the sample code on the page here: https://docs.unity3d.com/ScriptReference/Canvas-additionalShaderChannels.html it still seems to cause a crash after a second or so. Are you applying the code in a different place? I'm applying it to the parent canvas immediately before the materials are set.

Setting the canvas to have the extra layers in the inspector also seems to crash. Not sure what I'm doing differently?

I don't think I follow you.
I'm setting the shader channel variable through the inspector field on the Canvas, not through code.
Also, I only tested on 2017.1.0b5, since that version didn't crash like 5.6, I assume they changed something.

Developer

Ahh okay. Hopefully it'll be fixed in the next major Unity release, then?

Yep. 2017.1 should be released around June. But I think you might have to display a message if the user adds a SuperTextMesh to a canvas that doesn't have the correct shader channel.

Developer

I think I'll be able to add the shader channel myself through code when that comes, so hopefully this works! Either way, my asset that replaces Unity UI should be going up soon, too. Let me know if you want a copy!

Quads aren't working at all in the last update with 5.4.4. Bought this specifically to display images in tooltips and text. Any pointers of how we could fix this?

Developer

Taking care of this on your other thread: https://itch.io/t/190198/quadsimages-arent-displaying-at-all

Viewing posts 21 to 26 of 26 · Previous page · First page