Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: matix on April 19, 2012, 01:36:38 AM
-
Hey Aren, how many drawcalls do u need for you Minimap?
Can u make a example or demo with u Minimap?
-
I believe I have 3 in there, but it can be 2. One draw call for the map's texture, since it uses a RenderTexture with a UITexture, and another draw call for the target indicators that go on top. In my case I also have a background for it just to make it look fancier, so I have 3.
-
Oh yeah and I should note that the target indicators can actually be in the same draw call as the rest of the UI, essentially reducing the needed number of extra draw calls to 1.
As for example... not yet. :)
-
what is the diference between the minimap blips and hpBars like here? http://www.tasharen.com/?topic=creating-a-ui-sprite-on-the-fly
how can all blips take just 1 Drawcall and the HpBars 1 each ?
-
It's a matter of where you have your panels. In the hp bars sample you have panels on each hp bar. In the minimap I have only one panel. You can do the same thing by removing the UIPanel from the hp bar, and then there will be only one.