1
NGUI 3 Support / Re: Changing scene makes the GUI all blurry
« on: January 29, 2014, 11:55:38 AM »
Nothing had 0.5 offsets anywhere, unfortunately.
After much trial & error, I put back the old code in UIAnchor to add the 0.5 offset, but *only* when I switch scenes, and it fixed my problem. But I must admit I'm not very satisfied with the solution, which is not very elegant code-wise.
I tried to use the new anchor system to anchor panels on the side of the screen, but I must admit that I couldn't get it working, even in very simple setups (I'm using 3.0.9f7). Here is what I tried to anchor on the top left corner of the screen. Using the following hierarchy:
UIRoot
UICamera
UIPanel
My widgets
My first problem is clipping on the panel. I do not need clipping, but I cannot anchor if I don't have some. So let's say I use alpha clipping, with a 300x300 rect. I setup an advanced anchor on the panel, set the UICamera as the left anchor + 0, the UICamera as the top anchor + 0, and leave both right and bottom anchors to None. When I hit play, the widgets start on the top left corner, but then move to the center of the screen. Same effect if I use the UIRoot as reference instead of the UICamera. Any idea what I am doing wrong?
Also, small suggestion: adding a small button to reset the anchor reference to None would help tremendously (it's quite time-consuming to click the object selector, scroll all the way up, and finally choose None).
After much trial & error, I put back the old code in UIAnchor to add the 0.5 offset, but *only* when I switch scenes, and it fixed my problem. But I must admit I'm not very satisfied with the solution, which is not very elegant code-wise.
I tried to use the new anchor system to anchor panels on the side of the screen, but I must admit that I couldn't get it working, even in very simple setups (I'm using 3.0.9f7). Here is what I tried to anchor on the top left corner of the screen. Using the following hierarchy:
UIRoot
UICamera
UIPanel
My widgets
My first problem is clipping on the panel. I do not need clipping, but I cannot anchor if I don't have some. So let's say I use alpha clipping, with a 300x300 rect. I setup an advanced anchor on the panel, set the UICamera as the left anchor + 0, the UICamera as the top anchor + 0, and leave both right and bottom anchors to None. When I hit play, the widgets start on the top left corner, but then move to the center of the screen. Same effect if I use the UIRoot as reference instead of the UICamera. Any idea what I am doing wrong?
Also, small suggestion: adding a small button to reset the anchor reference to None would help tremendously (it's quite time-consuming to click the object selector, scroll all the way up, and finally choose None).
