Author Topic: UIGrid get position of children  (Read 1892 times)

Isamson

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 52
    • View Profile
UIGrid get position of children
« on: June 20, 2013, 03:13:40 PM »
Hi!
I'm using UIGrid to sort a list of icons. I trying to place an outline around one of the children without moving the whole list.

I started by getting the local position of the object, but they all have the same position.

Do you see any way to do this with UIGrid or will I have to build myself a function to place the icons themselves?
Unity 4.5.3f
NGUI 3.7.0

OnlineCop

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 51
    • View Profile
Re: UIGrid get position of children
« Reply #1 on: June 20, 2013, 06:27:10 PM »
If you traverse up the GameObject tree to each of the cell nodes, do you get to a parent/root that shows different position offsets from each other?