Author Topic: I don't understand widget bounds  (Read 1660 times)

mathiassoeholm

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 35
    • View Profile
I don't understand widget bounds
« on: December 14, 2012, 05:48:55 PM »
Hello there

I have a draggable camera in my scene, which I would like to give bigger bounds.
I can understand that the bounds are calculated by child widgets to the 'root for bounds' transform, correct?

I would think that I should just place two widgets a long way from each other and I would get big bounds.
However this is not the case, the camera can only be dragged a fixed amount. It's the same amount with or without the widgets.

Optimally i would just have the camera dragged freely, without any constraints in the position.

Hope you understand the problem.
Thanks in advance :-)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: I don't understand widget bounds
« Reply #1 on: December 14, 2012, 08:00:36 PM »
If you want to drag your camera freely, use UIDraggedObject (or UIDraggableObject? something like that).

mathiassoeholm

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 35
    • View Profile
Re: I don't understand widget bounds
« Reply #2 on: December 15, 2012, 11:47:06 AM »
Thanks, that's precisely what I needed.. Works like a charm!

The support here is so great  :)