/// <summary> /// Auto-upgrade. /// </summary> protected override void OnInit() { if (!mFillCenter) { mFillCenter = true; centerType = AdvancedType.Invisible; #if UNITY_EDITOR && !DLL_TYPE NGUITools.SetDirty(this); #endif } base.OnInit(); FuncUtil.InitUISprite(this); }