导出代码更新

This commit is contained in:
2025-07-25 00:24:36 +08:00
parent bb82e65ac6
commit e847da3bf5
2 changed files with 11 additions and 1 deletions

View File

@@ -42,6 +42,11 @@ public class UIComponentExportEditor : Editor
.Distinct() .Distinct()
.ToList(); .ToList();
if (prefab.GetComponent<UISelectList>() != null)
{
uguiComponentNames.Add("UISelectList");
}
if (uguiComponentNames.Count == 0) if (uguiComponentNames.Count == 0)
{ {
uguiComponentNames.Add("GameObject"); uguiComponentNames.Add("GameObject");

View File

@@ -54,6 +54,11 @@ public class UIViewExportEditor : Editor
.Distinct() .Distinct()
.ToList(); .ToList();
if (prefab.GetComponent<UISelectList>() != null)
{
uguiComponentNames.Add("UISelectList");
}
if (uguiComponentNames.Count == 0) if (uguiComponentNames.Count == 0)
{ {
uguiComponentNames.Add("GameObject"); uguiComponentNames.Add("GameObject");