Author Topic: Negative scale and MakePixelPerfect  (Read 2760 times)

Asse

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 70
    • View Profile
Negative scale and MakePixelPerfect
« on: October 31, 2012, 06:23:53 AM »
Hey,

I need to use the MakePixelPerfect method and some of my UISprites have a negative scale to mirror the texture. MakePixelPerfect now "corrects" the negative scale to positive.

Is there a way to bypass this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Negative scale and MakePixelPerfect
« Reply #1 on: October 31, 2012, 08:48:23 AM »
I'll see about fixing it for the next version.

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: Negative scale and MakePixelPerfect
« Reply #2 on: November 01, 2012, 08:49:05 AM »
One other simple solution ArenMook told me one day, is to create a parent for this object, and set its scale with negative values.

mySprite (scale : -50, 50, 1)

will become

mySpriteParent (scale : -1, 1, 1)
--- mySprite (scale : 50, 50, 1)