Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Commit

Permalink
improve copy items name
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhaopen committed Dec 20, 2018
1 parent eefa962 commit 49357ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/UIEditorHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Canvas>() == null)
while (root_trans != null && root_trans.GetComponent<LayoutInfo>() == null)
{
if (root_trans.parent != null && root_trans.parent.GetComponent<Canvas>() == null)
if (root_trans.parent != null && root_trans.parent.GetComponent<LayoutInfo>() == null)
item_name = root_trans.name + "/" + item_name;
else
break;
Expand Down

0 comments on commit 49357ea

Please sign in to comment.