Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Asse on October 31, 2012, 06:23:53 AM

Title: Negative scale and MakePixelPerfect
Post by: Asse 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?
Title: Re: Negative scale and MakePixelPerfect
Post by: ArenMook on October 31, 2012, 08:48:23 AM
I'll see about fixing it for the next version.
Title: Re: Negative scale and MakePixelPerfect
Post by: nah0y 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)