diff --git a/Common/UIEditorHelper.cs b/Common/UIEditorHelper.cs index 403f7fb..f8118ed 100644 --- a/Common/UIEditorHelper.cs +++ b/Common/UIEditorHelper.cs @@ -28,9 +28,9 @@ public static void CopySelectWidgetName() { string item_name = item.name; Transform root_trans = item.transform.parent; - while (root_trans != null && root_trans.GetComponent() == null) + while (root_trans != null && root_trans.GetComponent() == null) { - if (root_trans.parent != null && root_trans.parent.GetComponent() == null) + if (root_trans.parent != null && root_trans.parent.GetComponent() == null) item_name = root_trans.name + "/" + item_name; else break;