Search Unity

Resolved Which is better, a sprite mask or multiple sprites

Discussion in '2D' started by Grommila_Ice, Mar 17, 2023.

  1. Grommila_Ice

    Grommila_Ice

    Joined:
    Jan 7, 2021
    Posts:
    1
    Which will be more optimized, using a sprite mask or multiple sprites? Let's say I have 2 sprites. Asphalt and grass and it is necessary that in some place, in the middle of the grass there was asphalt.
    Is it better to make a sprite mask for grass or to bypass this area with several grass sprites?
     
  2. flasker

    flasker

    Joined:
    Aug 5, 2022
    Posts:
    193
    if the grass is all batched in the same drawcall multiple sprites will be better

    also depends if you use many game objects instead of only 1

    1 game object better than many
     
    Grommila_Ice likes this.