I have a prefab in which one of its children needs to have UIStretch on it. When I NGUITools.AddChild it to the panel, the stretching doesn't work. The reason is because mRoot in UIStretch is null. It works fine after being disabled, and then enabled. This is because mRoot is only assigned to in OnEnable.
Is there a more elegant solution than toggling enabled?
EDIT: Other than changing NGUI code that is.