Quantcast
Channel: Latest Questions by Hamdullahshah
Viewing all articles
Browse latest Browse all 6

Setting shared Material using script is not showing in "Saved by Batch"

$
0
0
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

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>