Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: netlander on July 03, 2014, 12:08:54 PM

Title: UIGrid collapsed on scene start
Post by: netlander 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
Title: Re: UIGrid collapsed on scene start
Post by: netlander 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.
Title: Re: UIGrid collapsed on scene start
Post by: ArenMook 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.