Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Chris_E on January 09, 2014, 01:39:56 AM

Title: Auto adjust to match with transparency
Post by: Chris_E on January 09, 2014, 01:39:56 AM
I love the auto adjust to match, but when my sprite has transparency the original attach works exactly how I'd expect (ignoring the transparency) but with auto-adjust it includes all of the transparency.  Is there a way to make it ignore the transparency and make it more like the "attach -> collider" button?
Title: Re: Auto adjust to match with transparency
Post by: ArenMook on January 09, 2014, 07:24:11 PM
Both should be going through the same code, and should include the cut pixels in the box calculations. The white outline around the sprite = original uncut texture's dimensions = box collider's dimensions. If that's not what happens, then I will need to look into this when I return from vacation.