导出代码更新

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

@@ -40,7 +40,12 @@ public class UIComponentExportEditor : Editor
.Where(c => c != null && UIViewExportEditor.IsUGUIComponent(c))
.Select(c => c.GetType().Name)
.Distinct()
.ToList();
.ToList();
if (prefab.GetComponent<UISelectList>() != null)
{
uguiComponentNames.Add("UISelectList");
}
if (uguiComponentNames.Count == 0)
{

View File

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