Author Topic: UIGrid collapsed on scene start  (Read 3022 times)

netlander

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 11
    • View Profile
UIGrid collapsed on scene start
« on: July 03, 2014, 12:08:54 PM »
Hi,

I have a UIGrid in my scene, I design the grid with various dimensions and run the "execute" command from the component dropdown and the grid looks as I intended it.

When I run the level, however, the grid is displayed in a collapsed state, i.e. the nodes are positioned on top of each other, the only way I can expand the grid in play mode is if I go back to the component menu and re-execute. Then when I restart the level the grid is collapsed again. I tried everything (saving the scene, restarting Unity, etc...) but this very annoying glitch remains.

Am I missing something obvious?

Thanks
Paul

netlander

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 11
    • View Profile
Re: UIGrid collapsed on scene start
« Reply #1 on: July 03, 2014, 12:24:46 PM »
This only happens when I duplicate an existing grid and modify it further, when building a grid from scratch things run smoothly. Very strange.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIGrid collapsed on scene start
« Reply #2 on: July 04, 2014, 01:44:17 PM »
If the grid is enabled, it will reposition its children when it starts up. If the grid script is disabled, it won't.