Author Topic: variable UIPanel clipping? Trying to constrain object dragging to viewport.  (Read 2626 times)

Thurinus

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 27
    • View Profile
Hi everyone!

I've been trying out UIDragObject, and am wondering if there's a way to clip the dragging to the viewport? I tried to put the draggable items into a Panel that normally fills the viewport, but in order to get clipping to work properly to constrain the draggable items, I had to set the UIPanel's clipping size. Is there a way for the clipping to size based on the viewport size, or is there another way to achieve what I want to do that involves a different method?

Thanks for any help
J

dlewis

  • Guest
When I had to so this I had to do it programatically. There is a vector4 variable on UIPanel that deals with the clipping where XY are the center and YZ is the clipping size (or the other way around, I'm going off memory).