Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Cwal on October 23, 2013, 06:23:14 PM
-
I have a set up that instantiates new objects to be placed in a grid. I changed which scene the prefab was placed in, and now when the grid is generated everything is offset by 1000 units in the z axis, which means that everything is out of the view. I can't find any difference between the two scenes to explain the difference, or what is happening in the instantiation code that could be causing it. If I move them in play mode, they move back when the grid is moved.
-
Check the Z position of all the game objects leading up to your instantiated objects, and make sure you use NGUITools.AddChild to instantiate it, not Object.Instantiate.