- Home /
How to decrease batches for Text Mesh Pro(UI) when there are images?
Hey, This is regarding UI usage of TMPro. I stumbled upon a performance issue when using Text Mesh Pro and its functionality to add images inside. I am using it for floating text for a clicker game where I need to spawn a lot of texts and I want to have an image inside. I have noticed that for each text you have in the scene with an image inside it creates a submesh with 2 materials that add 2 new batches to the scene, which quickly becomes an issue.
From my understanding this is due to TMPro creating a new material for each text and it doesn't batch them. Is there way to improve on this?
Note: Dynamic batching is active and I have made the test in editor mode.
Your answer
Follow this Question
Related Questions
How UI Batching works with two different sprites ? 0 Answers
Everything inside One Canvas 1 Answer
StencilMaterial class 0 Answers
How to find position of sprites generated by tag in TextMesh Pro? 0 Answers
1 UI Text vs 2 UI Text 1 Answer