Sorry if i did not explain well.
By draggable panel i mean, I have a
UIPanel, called
PartyPanel, inside i have a
UIWidget named
DragHandle with attached a
UIDragObject, this Component have it's target to the
PartyPanel.
By click and drag on DragHandle, i can move PartyPanel.
Now this panel can be dragged outside of the viewport, and can no longer be seen.
I want to prevent that, so i can move the panel freely on the entire viewport, but cannot go outside.
If it get dragged outside, on release it must adjust its position in order to be inside the viewport.
I may did not have understand how
UIDragObject.KeepVisible works, but if i did, it is a rect where the panel can be dragged without it getting repositioned, right?
If it is, then by saying "Create an object that fills the screen in order to attach it to the content rect" i mean create a rect that fill the viewport, and use this rect as
UIDragObject.ContentRect so the dragged panel can only be moved inside it.
What i have tried is, hight in hierarchy, just after the UICamera, i have a UIWidget named
MainPanel, and this is used as Content Rect.

But with this setup, it is not working, i can still drag the panel on the screen, but if i release, it moves down by let's say 50px. Then if i try again to move it, it moves down again by another 50px, till it goes completely out of the screen. It is hard to explain what's going on, sorry.
I hope that i clarified what i want to do, and i apologize if my english is poor, i'm italian.