Author Topic: UIDraggableCamera on the X-Z Plane  (Read 3424 times)

lyncks

  • Guest
UIDraggableCamera on the X-Z Plane
« 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!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDraggableCamera on the X-Z Plane
« Reply #1 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.

lyncks

  • Guest
Re: UIDraggableCamera on the X-Z Plane
« Reply #2 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDraggableCamera on the X-Z Plane
« Reply #3 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.