Hello! In my game you can tunnel through the world by clicking on stone walls. Each wall block is a prefab, and when you click it, it destroys itself, creates a floor in its place, and creates new wall prefabs around that new floor tile.
using the Create Object action in playmaker, adds draw calls every time I do this, so i can't mine very much until there are hundreds or thousands of draw calls.
But all the walls use the same material and should not be adding draw calls.
Their geometry is simple squares, and they use the same material.
I wonder if it's because the Creat Object action uses the wrong terminology inside it?
from the unity help: Material Access: Be careful when accessing Renderer.material. This will duplicate the material and give you back the copy, which will opt that object out of batching consideration (as its material pointer is now unique). Use Renderer.sharedMaterial.
Could all these new draw calls be due to the action accessing Renderer.material instead of using Renderer.sharedMaterial?
If this turns out to be the case, I'll request a version of the action that uses the one that doesn't increase draw calls.