Author Topic: Scroll View focus issue  (Read 2967 times)

callski

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 9
    • View Profile
Scroll View focus issue
« on: July 21, 2014, 11:57:38 AM »
Please keep in mind I am very new to NGUI.
     I have set up a scroll view with a grid as the child. Attached are two child panels. For some reason when I hit play in unity the screen scrolls to the second panel. When I swipe back to the first panel I can see it, but the moment I lift my finger off the screen it scrolls back to the second panel. Any suggestions on how to fix this? I am using NGUI 3.5.6.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scroll View focus issue
« Reply #1 on: July 21, 2014, 06:04:13 PM »
Am I correct in understanding that you seem to have nested panels in there? First, you need to update your NGUI version to the latest. 3.5.6 is very old. Second, are they nested clipped panels? (ie: all of them scroll views?) Keep in mind the scroll views work best with widgets inside them, not other panels. Even when using other sub-panels, you should create a widget container first that would contain the entire sub-panel's region inside it. This way the widget will define the area of your content.