Author Topic: Problem with draggable camera and bounds  (Read 6228 times)

pahe

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 37
    • View Profile
Problem with draggable camera and bounds
« on: May 02, 2012, 05:28:43 AM »
Hi guys.

I'm currently playing with NGUI and I faced a strange problem in my test scene with my draggable camera. I copied most parts of the scroll view example to my scene, but wanted to have the scroll content to be vertical. Now my camera only scrolls a small range up/down and not the full content of my UIGrid which I have set as the Root For Bounds property.
How does the camera calculates it's bounds, as the UIGrid should support a greater height as my camera moves. Is there anything I could have missed to setup for the camera?

Thanks for help.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with draggable camera and bounds
« Reply #1 on: May 02, 2012, 08:20:59 AM »
It uses the widget bounds to calculate the size of the area.