Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: lyncks on May 06, 2012, 08:45:08 PM
-
Hey Aren,
Loving the plugin thus far, best investment I've made on the Asset Store. Just had one question for you - what's the easiest way to get UIDraggableCamera working on the X-Z plane rather than the X-Y plane? I have a camera looking "down" at a level, I'd like to be able to move that camera around using UIDraggableCamera.
Thanks!
-
Draggable camera is for 2D UIs, so Z axis is not something you should be using. My suggestion -- use UIDraggableObject instead.
-
Thanks for your quick reply. That seems to work better.
What's the best way to put a bounds on that camera's position so I get the same spring effect?
-
Just write your own script that will check the transform's position. If it's outside the dimensions you define, use the spring position script to bring it back.