Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: shokinhan on November 20, 2012, 08:48:30 AM

Title: The border line blurring
Post by: shokinhan on November 20, 2012, 08:48:30 AM
Some times the frame border are blurring, but when I add 1 pixel to the border, it will be distinct, and then I Make pixel perfect, it will be blurring again. Why ?

Title: Re: The border line blurring
Post by: ArenMook on November 20, 2012, 03:51:55 PM
Select your UIRoot and hit Alt+Shift+P. This will pixel-perfect your entire UI.
Title: Re: The border line blurring
Post by: shokinhan on November 20, 2012, 10:07:27 PM
If the border is distinct, when I press Alt + shift + P, it will change blurring again.
Title: Re: The border line blurring
Post by: JRoch on November 20, 2012, 11:10:10 PM
Does one of the panel/widgets not have the half-pixel offset box checked?
Title: Re: The border line blurring
Post by: shokinhan on November 20, 2012, 11:23:12 PM
How to checked  the half-pixel offset ? 
where is the menu?
Title: Re: The border line blurring
Post by: ArenMook on November 21, 2012, 01:45:53 AM
It's set on the UIAnchor. Select yours, and check it.
Title: Re: The border line blurring
Post by: shokinhan on November 21, 2012, 02:24:57 AM
I can't follow your means. Some UI has UIAnchor, some UI does not has UIAnchor.
Your means all that UI need to add UIAnchor, and then they will be distinct ?



Title: Re: The border line blurring
Post by: nah0y on November 21, 2012, 12:20:42 PM
I think he's talking about the "root" Anchor, the one that is a child of your NGUI Camera.
On this UIAnchor script, there is a Half Pixel Offset property
Title: Re: The border line blurring
Post by: ArenMook on November 21, 2012, 05:28:59 PM
You must have at least one UIAnchor in your UI. When you create a new UI hierarchy, the anchor is automatically added for you. Sounds like you removed yours. Anchors perform pixel-perfect correction.