Draw.Text crashes Textmesh Pro UI on iOS devices

Avatar
  • updated
  • Unity's Fault

Hi, 

I used Draw.Text to draw the text on 3D space in my app. I also have other Textmeshpro component on my screen space UI. If I start drawing Text using the draw command for that camera, the screen space Textmeshpro UI disappears. 

Here is my draw command code: 

SetDrawMatrix();
SetDrawZTest(UnityEngine.Rendering.CompareFunction.Always);
Draw.Text(drawCallback.verts[0], drawCallback.verts[1], drawCallback.text, drawCallback.style.align, drawCallback.style.fontSize, drawCallback.style.color);

This case only happens in my iPAD pro, but not in editor. My xcode version is 12.5.1.


Thanks

Reporting a bug? please specify Unity version:
2020.3.16f1c1
Reporting a bug? please specify Shapes version:
4.1.0
Reporting a bug? please specify Render Pipeline:
URP
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Unity's Fault

if you're getting divergent behavior specifically on iOS, it's very likely a Unity bug I'm afraid, I wouldn't know where to start looking to solve this :(

Avatar
Freya Holmér creator
  • Answer
  • Unity's Fault

if you're getting divergent behavior specifically on iOS, it's very likely a Unity bug I'm afraid, I wouldn't know where to start looking to solve this :(