13
« on: January 12, 2013, 08:43:07 PM »
So I've been using NGUI for a while and all of the sudden some of my UI that was previously working stopped. It's not a part I test very often, so I'm not sure what change caused it (an NGUI update, or a Unity update, or something else), but I do know I haven't actually touched the UIObjects since they were working. So, what's happening is two-fold. One, the UIDraggable Panel script is ignoring the Scale attribute. It is set to 0, 1, 0, but is allowing dragging in all directions. The other issue is that clipping has stopped working. Instead of soft-clipping, its now just hiding all the panel contents all the time. I checked the gizmos, and they are all in the right place. In the editor, it doesn't work right either, except in the camera preview for the relevant uipanel.
So, anyway, I'm lost. The setup is as follows:
UIRoot->UIAnchor->ParentPanel(NoClipping)->(UIDraggablePanel with soft clipping)->child labels to be clipped
and then, as a sibling of the UIDraggablePanel, is a sliced sprite with UIDrag Panel Contents and a box collider.
I thought it might be the parent panel, so tried removing it, and that made it look correct in the editor, but it still fails completely when I play. My general camera/ui setup is a separate UIRoot and UICamera for each UI "layer" (so, I have one inventory root and camera, one game overlay root and camera, ect). Like I said initially, all this worked perfectly a month or two ago, but when I came back to it after not having tested/used it in a while, it was all broken. Any ideas?
-Sean