Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: lyncks on May 06, 2012, 08:45:08 PM

Title: UIDraggableCamera on the X-Z Plane
Post 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!
Title: Re: UIDraggableCamera on the X-Z Plane
Post by: ArenMook on May 06, 2012, 08:57:52 PM
Draggable camera is for 2D UIs, so Z axis is not something you should be using. My suggestion -- use UIDraggableObject instead.
Title: Re: UIDraggableCamera on the X-Z Plane
Post by: lyncks on May 06, 2012, 09:13:00 PM
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?
Title: Re: UIDraggableCamera on the X-Z Plane
Post by: ArenMook on May 06, 2012, 09:52:35 PM
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.