Hey there, I've got a widget on its own panel, and for drawing it uses 2 sprites and 6 labels with a total of 3 unity dynamic fonts.
I was expecting to get 4 draw calls to get that widget drawn:
1 draw call for all the sprites + 1 draw call per font.
so, this widget has 3 labels using the same font, and ngui groups them in the same drawcall, really neat!
so far so good.....but....I've noticed one of my labels that shares the same font with the other 2 labels, is being drawn on its own draw-call for no reason...and that specific label is the only one using "Expand Height" overflow.
Weird thing is, if I disable and re-enable that label, it fixes the draw-call issue, grouping it back with the other 2 labels that share the same font, so as a workaround, I have set a script that performs:
void Start() {
myLbl.enabled=false;
myLbl.enabled=true;
}
this fixes the issue, but, why is it happening in the first place?
thanks in advance aren!