- Home /
Question by
Hamdullahshah · Aug 28, 2013 at 02:37 PM ·
materialsbatchingdrawcalls
Setting shared Material using script is not showing in "Saved by Batch"
Hi,
I'm new to Unity3D. I am facing an issue, that if using the Visual Editor assigning same material to different game object it shows that "saved by Batching 1 etc". While assigning same material using script shows Zero(0) saved by batch.
i have tried
gameObject.rendrer.material = myMaterial; (same result) gameObject.rendrer.sharedMaterial = myMaterial; (also same result)
Please let me know how can I save the draw call in this scenario (assigning all materials using script). Thanks
Comment
Your answer
Follow this Question
Related Questions
Batching Nightmare, What affects dynamic Batching!? 0 Answers
why wont Static mesh always batch with same material? 0 Answers
Batching objects problem 1 Answer
Trying to reduce draw calls but...? 2 Answers
Advice on Texture atlas and batching 0 Answers