Author Topic: How to reset an NGUI scroll panel and all contents when activated/deactivated?  (Read 2504 times)

super-cypher

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
hi

can anyone please tell me how i reset a NGUI scroll panel and everything it contains to their original positions when activated/deactivated?

i build my entire game with playmaker so please explain step by step if possible as i dont really know code.

what im trying to do is have all the ngui panels deactivated then activate them as and when needed.

However i have 'store' items in scroll panels that, if for instance, i scroll some items, then deactivate the panel and then reactivate it, all the buttons, labels etc etc are all messed up in the wrong positions.

i guess i would like to reset the panel to how it was at the start of the game every time its activated or deactivated.

many thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
I can't tell you how to do it with Playmaker. With NGUI it's simple -- call ResetPosition() on the scrollview.