NGUI Scroll List

NGUI Scroll List

1.Add GameObject with Script UI Panel(NGUI -> UI -> NGUI Panel) and Script UI Scroll View(NGUI -> Interaction -> Scroll View)
Set the Clipping to "Soft Clip" and The Size(X, Y values).

2.Add GameObject as a child of the above Panel, and then add Script UI Grid(NGUI -> Interaction -> Gird) and Script UI Center On Child(NGUI -> Interaction -> Center Scroll View On Child).
Set the Arrangement and Cell Width, Cell Height.

3.Add GameObject as a item of the above Scroll View, and add a Box Collider(Title Menu -> NGUI -> Attach -> Collider), add Script UI Drag Scroll View(NGUI -> Interaction -> Drag Scroll View), add Script UI Center On Click(NGUI -> Interaction -> Center Scroll View On Click).
Drag the 1's Panel into the UI Drag Scroll View's Scroll View.

4.Now add the item content of yours and enjoy.

posted @ 2016-04-07 13:43  elfnaga  阅读(252)  评论(0编辑  收藏  举报