- Home /
Same material but lack of Single Draw Call ?
Hi, I have generated a Grid through script using a prefab containing Line Renderer Component as shown below, Each horizontal and Vertical line is a modifies clone obtained by
Insatantiate(prefab);
As you can see the number of draw calls is 27 all having the same Material why is that?
Answer by 767_2 · Oct 18, 2014 at 10:50 AM
Line renderer cant batch you should use mesh renderer
Although, if all those lines are using the same prefab, there's clearly some non-uniform scaling going on which will also break batching.
How are you going to use this grid? It is hard to tell you how to use the $$anonymous$$esh Renderer without knowing this.
I want to record any touch or $$anonymous$$ouse events on each block of the grid
Your answer
Follow this Question
Related Questions
Dynamic batching not working? 0 Answers
Draw call Error 0 Answers
Batching problem when using multiple materials in one model 1 Answer
Can I have multiple/alternate UV textures for one mesh in a single file? 0 Answers
many mesh filters vs many materials 0 Answers