Search Unity

Draw Calls | Are duplicate materials called once or per material?

Discussion in 'Editor & General Support' started by DarkEcho, Oct 29, 2020.

  1. DarkEcho

    DarkEcho

    Joined:
    Jul 7, 2014
    Posts:
    233
    Draw Calls | Are duplicate materials called once or per material?

    For example, if I have two trees using the same material, is the material called once of twice?
     
  2. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    1,317
    Check out this page for information: https://docs.unity3d.com/Manual/DrawCallBatching.html

    It is also important to point out that if you access
    myMeshRenderer.material
    at any time it will create a unique instance of the material for that renderer and be unable to batch it anymore.