I have a panel that has been made draggable. How do I keep the panel from being allowed to be dragged offscreen? I'd like to enforce the panel to always have at least X pixels onscreen. Ideally, if it is dragged too far, I'd like to have it spring back on screen within the set bounds. I can't seem to figure out where in the UIDraggablePanel script to check the bounds.
Thanks in advance for any hints.