I have a long list of scrollable buttons (GUITexture) and I am getting 250 draw calls(!). As most of the buttons are off screen at any one time can I bring down the draw calls somehow?
Whats the best way?
I think I just figured this out. I manually de activate objects that are off screen. Simple.
if (directoryButton[x].transform.position.y>0.75||directoryButton[x].transform.position.y<-0.5)
{
directoryButton[x].SetActiveRecursively(false);
}
I think my biggest overhead is that each button has 2 draw calls. One for the gui text and a separate one for the texture…hmm
The reason I had to have two separate objects is that I couldnt figure out a way of getting the text to draw on top of the guitexture when they were a combined object…(??)