Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: noob22 on July 02, 2012, 09:55:44 PM

Title: Why I use "Make Pixel-Perfect" and the gameobject's transform's P:x=0.5,y=-0.5?
Post by: noob22 on July 02, 2012, 09:55:44 PM
Why they change position?
Title: Re: Why I use "Make Pixel-Perfect" and the gameobject's transform's P:x=0.5,y=-0.5?
Post by: ArenMook on July 02, 2012, 10:10:31 PM
If your sprite doesn't have even dimensions  (such as 20x30), and instead has even dimensions such as (21x33), dividing that by 2 in order to center it results in a floating point value. such as 10.5 x 16.5. That's why you see "0.5" there. It just ensures that the pixels look crisp.
Title: Re: Why I use "Make Pixel-Perfect" and the gameobject's transform's P:x=0.5,y=-0.5?
Post by: noob22 on July 02, 2012, 10:32:21 PM
If your sprite doesn't have even dimensions  (such as 20x30), and instead has even dimensions such as (21x33), dividing that by 2 in order to center it results in a floating point value. such as 10.5 x 16.5. That's why you see "0.5" there. It just ensures that the pixels look crisp.
Thanks for your reply!
You are so kind!I'm a beginner!Thanks!