I have multiple UIDraggablePanels.
I'm looking for a good way to stop drag if they touch each other or the edge of the player window?
using OnTriggerEnter or OnCollisionEnter I have to add a Rigidbody to each panel, this seems a little heavy duty? Besides that, I can't think of a nice way to just 'bump' up, stop, but then easily move back off.
Imagine having the panels as blocks of Lego on a tray, you can move them about, up to the edge, and up to each other. But they can't escape the tray, and they won't intersect.
(I'm not using these with scroll bars, just as floating panels)
Thanks for any ideas...