Below is the OnEnable method of UIWidget.
protected override void OnEnable ()
{
base.OnEnable();
RemoveFromPanel();
// Prior to NGUI 2.7.0 width and height was specified as transform's local scale
if (mWidth == 100 && mHeight == 100 && cachedTransform.localScale.magnitude > 8f)
{
UpgradeFrom265();
cachedTransform.localScale = Vector3.one;
#if UNITY_EDITOR
UnityEditor.EditorUtility.SetDirty(this);
#endif
}
Update();
}
you can see it calls Update() at last. Why? It's a bit awkward.
My NGUI version is 3.3.6