Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Flipping sprites without an extra draw call (in v4.5)

Discussion in 'Editor & General Support' started by grofie, May 26, 2014.

  1. grofie

    grofie

    Joined:
    Dec 9, 2013
    Posts:
    30
    Our 2D project suffers from a lot of extra draw call caused by flipping sprites (by setting scale to (-1, 1, 1)).

    In the release notes for 4.5 I found the improvement

    2D: SpriteRenderer now supports flipping.

    so I installed version 4.5 RC4. But I cannot find any extra option for flipping at the renderer or sprite. Flipping by scale x = -1 still causes the extra draw call.

    So anybody knows how to correctly flip the sprites in 4.5? :confused:

    Big thx in advance!
     
  2. grofie

    grofie

    Joined:
    Dec 9, 2013
    Posts:
    30
    Found the solution myself:

    Don't use scaling, instead make a rotation around the y-axis.

    This seems to work even with version 4.3.
     
  3. Yodzilla

    Yodzilla

    Joined:
    Mar 21, 2013
    Posts:
    48
    Holy crap pro tip right there. Thanks grofie!