Author Topic: Questions Regarding UIDragable Panel Writeup  (Read 1960 times)

artician

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 54
    • View Profile
Questions Regarding UIDragable Panel Writeup
« on: September 20, 2012, 09:02:08 PM »
Hello,
I'm following the writeup for the Scrolling View with the Clipped Panel, (http://www.tasharen.com/?page_id=4444) and I have a very basic question about one of the steps.

In this step:
Quote
Once that was done, I added a child to this second panel with a grid component on it

What kind of child did he add to the second panel?  A specific NGUI object, or a regular, empty Unity GameObject with the Grid component added?

Quote
(which automatically lays out its children based on the cell size of your choice), and copy/pasted a bunch of children underneath it

This makes it sound like his hierarchy is like this:

Parent Panel
|_Panel 2
   |_Grid Component Child
      |_Children to be sorted in Grid

Is that correct?

Many thanks for the help!

dlewis

  • Guest
Re: Questions Regarding UIDragable Panel Writeup
« Reply #1 on: September 20, 2012, 09:48:34 PM »
That's how I understand it

Panel
- GameObject with UIGrid
-- Object with UIDragPanelContents and box collider (so they can be dragged)
-- Object with UIDragPanelContents and box collider (so they can be dragged)
-- Object with UIDragPanelContents and box collider (so they can be dragged)
-- ...

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Questions Regarding UIDragable Panel Writeup
« Reply #2 on: September 21, 2012, 03:08:13 AM »
UIRoot
-UIPanel
--Static widgets
--UIDraggablePanel (same level)
---UIGrid
----items to be arranged by grid

And yeah, it's just a game object with UIGrid on it.