Welcome,
Guest
. Please
login
or
register
.
May 05, 2026, 03:52:38 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Pivot Set Problem
« previous
next »
Print
Pages: [
1
]
Author
Topic: Pivot Set Problem (Read 2643 times)
Sephiroth73003
Guest
Pivot Set Problem
«
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.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Pivot Set Problem
«
Reply #1 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.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Pivot Set Problem