From 9c609303f0176cc450463f20b15a222787c92242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=8B=E7=90=AA=E6=98=BE?= <1074857361@qq.com> Date: Fri, 19 Sep 2025 10:37:31 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=A2=9E=E5=8A=A0]=20=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=BC=80=E5=90=AF=E5=B1=85=E4=B8=AD=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/FairyGUIFormHelper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Runtime/FairyGUIFormHelper.cs b/Runtime/FairyGUIFormHelper.cs index 6af8852..ac3e0a7 100644 --- a/Runtime/FairyGUIFormHelper.cs +++ b/Runtime/FairyGUIFormHelper.cs @@ -88,6 +88,11 @@ public override IUIForm CreateUIForm(object uiFormInstance, Type uiFormType, obj } uiGroupComponent.AddChild(component); + if (uiForm.IsCenter) + { + component.Center(); + } + return uiForm; }