导出代码更新

This commit is contained in:
2025-07-25 00:14:42 +08:00
parent 5580b43743
commit bb82e65ac6
5 changed files with 15 additions and 32 deletions

View File

@@ -135,7 +135,7 @@ public class UIComponentExportEditor : Editor
SerializedProperty element = reorderableList.serializedProperty.GetArrayElementAtIndex(i);
var filedName = element.FindPropertyRelative("key").stringValue;
var typeName = element.FindPropertyRelative("selectedComponentName").stringValue;
sb.AppendLine($" {filedName} = GetGameObject(nameof({filedName})).GetComponent<{typeName}>();");
sb.AppendLine($" {filedName} = m_ViewExport.GetGameObject(nameof({filedName})).GetComponent<{typeName}>();");
}
sb.AppendLine(" }");
sb.AppendLine(" }");