Author Topic: UIScrollview Question  (Read 1431 times)

pborm

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
UIScrollview Question
« on: November 16, 2016, 04:42:30 PM »
Hi there, I'm new to nGUI and have a few questions about the UIScrollview widget... (this is in regards to c# code)

1)  How do I get a list of the GameObjects that are stored in a UIScrollview widget?  (I can access that variable type in my c# code)

2)  I know I can add a child to the object somehow, but am I right in assuming that I can reorder a list and pop that back into the Scrollview?

Thanks, and last question (so I don't have to bother yall too much) is there some kind of c# reference guide somewhere on ngui??

Thank you again!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollview Question
« Reply #1 on: November 20, 2016, 11:45:00 AM »
A scroll view is just a script on a game object. If you want to get its children, just go through transform's children.

The order of which elements appear in a scroll view is entirely your own. You can move things underneath the scroll view's object as you see fit, there is no order to any of it unless you add one (such as UIGrid).

There's http://www.tasharen.com/ngui/docs/ -- which reminds me, I should update it when the next version is put up.