So I’ve hit a problem Ppl. I have searched but couldnt find a solution.
I have 3 textmeshpro UGUI components and they increase the Draw calls from 30 to 37. Right now its not an issue but when I increase the textmeshpro UGUI components from 3 to 17 it goes from(37 to 38). So no issue.
So apparently there is no problem. But I want to understand How? and Why?
Draw calls for text are based on materials used. So if a text object is using multiple font assets and for potential fallbacks and sprite assets (emoji), then you will get a draw call for each of those.
The can batch between each other so if you have 5 text objects which all use the same materials then they will batch with each other. This is mostly the case for the normal TextMeshPro component.
However, this is not necessarily the case for the Canvas system which has its own sorting which is based on scene hierarchy. For instance, if you have a scene hierarchy with two buttons with text labels (using the same font asset) where these two buttons do not overlap then these will batch. But if they overlap, they will not batch.
There are most scenarios where batching breaks with the Canvas system. A search on the forum should provide more information.