We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43b07a3 commit 8b1cdbbCopy full SHA for 8b1cdbb
1 file changed
Runtime/FairyGUIFormHelper.cs
@@ -88,6 +88,8 @@ public override IUIForm CreateUIForm(object uiFormInstance, Type uiFormType, obj
88
}
89
90
uiGroupComponent.AddChild(component);
91
+ component.x = (uiGroupComponent.width - component.width) / 2f;
92
+ component.y = (uiGroupComponent.height - component.height) / 2f;
93
return uiForm;
94
95
0 commit comments