Hi,
I have an UIDraggablePanel with restrictWithinPanel set to true. The clipping size is set to exactly fill the screen. This works fine, I can drag the panel around, and it never goes out of bounds.
I then added UICenterOnChild to the same GameObject.
This can make the UIDraggablePanel no longer restricted to be within its bounds. If UICenterOnChild centers on a child that is too close to the edge of the panel, it will cause the panel to move out of bounds to center on the child. I would like to constrain the position SpringPanel moves to so that restrictWithinPanel is still honored.
Does anyone know how I can compute an alternate position to move to that does not cause the panel to move out of bounds?
Cheers,
Christian Tellefsen.