Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Majicpanda on January 06, 2013, 11:57:15 PM

Title: NGUITools.AddChild() prefab size
Post by: Majicpanda on January 06, 2013, 11:57:15 PM
Is it not proper to create an empty GameObject in your NGUI hierarchy to easily group items so that they can be prefab'd?  When using AddChild(gameObject, prefab) and the gameObject is localScale 1,1,1 the prefab inherits this upon being instantiated.

Feel like I'm probably doing this incorrectly... any ideas?

Thanks.
Title: Re: NGUITools.AddChild() prefab size
Post by: ArenMook on January 07, 2013, 09:06:54 AM
The scales of all game objects leading up to your widgets should be (1, 1, 1) anyway (UIRoot excluded). If you're creating a prefab out of something, create a prefab out of a parent game object, not a widget itself.