Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Sephiroth73003 on July 30, 2012, 10:30:10 PM

Title: Pivot Set Problem
Post by: Sephiroth73003 on July 30, 2012, 10:30:10 PM
So I set the pivot to the Left of a GUI component. The problem is the pivot is REALLY far left of the actual component. I need it to be lined up with the Sprite Quad on the left. It only does this for textures whose colored pixels aren't perfectly square (probably something else causing it but in general I only notice it when that happens).

Evidence is attached. File 1 has the top element selected as a 'Left' pivot but it's really far away and I can't seem to adjust the offset manually.

The texture atlas is also attached and as can be seen the texture has Nowhere near that much space on the left side. Is there a way to fix this without having to find a way to program the localPosition manually? Doesn't seem like it should work that way.
Title: Re: Pivot Set Problem
Post by: ArenMook on July 31, 2012, 12:45:05 AM
Select the atlas, choose the sprite, get rid of padding.

When transparent pixels get cut, they get replaced with padding for alignment purposes.