Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Thurinus on May 03, 2013, 05:54:51 PM
-
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
-
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).