Skip to content

Commit 9c60930

Browse files
committed
[增加] 界面打开开启居中显示
1 parent 43b07a3 commit 9c60930

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Runtime/FairyGUIFormHelper.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ public override IUIForm CreateUIForm(object uiFormInstance, Type uiFormType, obj
8888
}
8989

9090
uiGroupComponent.AddChild(component);
91+
if (uiForm.IsCenter)
92+
{
93+
component.Center();
94+
}
95+
9196
return uiForm;
9297
}
9398

0 commit comments

Comments
 (0)