代码导出工具

This commit is contained in:
2025-07-16 18:12:25 +08:00
parent d12748e532
commit 76507e5929
2 changed files with 2 additions and 5 deletions

View File

@@ -143,7 +143,7 @@ public class UIExportToolEditor : Editor
sb.AppendLine(" /// ");
sb.AppendLine(" /// </summary>");
sb.AppendLine($" public {element.FindPropertyRelative("selectedComponentName").stringValue} {element.FindPropertyRelative("key").stringValue}");
sb.AppendLine($" public {element.FindPropertyRelative("selectedComponentName").stringValue} {element.FindPropertyRelative("key").stringValue};");
}
sb.AppendLine(" public override void PreLoad(GameObject view)");
sb.AppendLine(" {");

View File

@@ -1,6 +1,3 @@
using System.Collections;
using System.Collections.Generic;
using CreatGame.UI;
using UnityEngine;
using UnityEngine.UI;
@@ -23,5 +20,5 @@ namespace CreatGame.UI
StarBtn = GetGameObject(nameof(StarBtn)).GetComponent<Button>();
StarBtnText = GetGameObject(nameof(StarBtnText)).GetComponent<Text>();
}
}
}
}