Another draw call question

I’m a little confused by the draw calls incurred by “GUI.Button” vs “GUILayout.Button”. Both elements seem to issue two draw calls. I was under the impression that “GUI.Button” would have been one call and that “GUILayout.Button” would have been two calls (one for layout metrics and one for the button itself.)

So, is it correct to say that a Button (regardless of GUI or GUILayout) uses one call for the button itself and the other call for the button contents?

And that, the extra draw calls incurred by using GUILayout have more to do with the additional container elements used than the actual base elements (Button, Toggle, etc)?

1 Answer

1

Each GUI Element will have its own draw call.

Have a look at the answer in this post. link text

all the buttons should be batched by unity if it were perfect, it would be better.

–