Skip to content

Commit 95d3d13

Browse files
committed
fix: 修正无效UI组的错误日志信息
将"UI group is invalid"错误信息细化为更具体的"Display object info is invalid"和"UI group component is invalid",以便更准确地定位问题
1 parent 5ba15ce commit 95d3d13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Runtime/FairyGUIFormHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ public override IUIForm CreateUIForm(object uiFormInstance, Type uiFormType, obj
126126
DisplayObjectInfo displayObjectInfo = ((MonoBehaviour)uiGroup.Helper).gameObject.GetComponent<DisplayObjectInfo>();
127127
if (displayObjectInfo == null)
128128
{
129-
Log.Error("UI group is invalid.");
129+
Log.Error("Display object info is invalid.");
130130
return null;
131131
}
132132

133133
var uiGroupComponent = displayObjectInfo.displayObject.gOwner as GComponent;
134134
if (uiGroupComponent == null)
135135
{
136-
Log.Error("UI group is invalid.");
136+
Log.Error("UI group component is invalid.");
137137
return null;
138138
}
139139

0 commit comments

Comments
 (0)