Author Topic: Lock Axis on UIDraggablePanel  (Read 2421 times)

ddeaco

  • Guest
Lock Axis on UIDraggablePanel
« on: May 08, 2012, 07:07:57 AM »
Hi,

I'm loving using NGUI, but i have a small issue I cannot work out.

I have a UIDraggablePanel set up and working with a UIGrid with children buttons, in a vertical arrangement. Currently you can drag the panel ether Up or Down but also left and right.

How do I lock it to only Up and down?

Thanks David.

ddeaco

  • Guest
Re: Lock Axis on UIDraggablePanel
« Reply #1 on: May 08, 2012, 07:28:08 AM »
 :o Opps Never mind.

Just worked it out, Setting the Scale on the UIDraggablePannel. Did the job.

No idea how i missed that, its even written in big text in the example...  :-[