I’m new to Unity and am trying to figure out best methods for materials and keeping draw calls down.
If I import an fbx asset of say, a vehicle, but it’s not a single mesh and is instead 10 separate objects, does that mean there will be 10 draw calls, one for each of the object parts of the model?
Or, let’s say it’s a single mesh, but I have applied 10 different materials to various polygon regions.
Will that be 10 draw calls as well, one for each material?
So if I brought in a model with 10 parts, and each part had 10 materials, that would be 100 draw calls?
Unity using “batching”. Which means meshes using the same material could theoretically cost only 1 drawcall.
So if you 1,000 meshes, but all meshes use the same material, it could possibly result in only 1 drawcall.
If I import an fbx asset of say, a vehicle, but it’s not a single mesh and is instead 10 separate objects, does that mean there will be 10 draw calls, one for each of the object parts of the model?
If all objects use the same material, it could be only 1 draw call
Or, let’s say it’s a single mesh, but I have applied 10 different materials to various polygon regions.
Will that be 10 draw calls as well, one for each material?
Yes.
So if I brought in a model with 10 parts, and each part had 10 materials, that would be 100 draw calls?
This is not easily answered. Range from 10 to 100 materials.