Files
udxandCursor b7a0bbcb89 Add hot-update boot pipeline, UI bundles/atlas assets, and design docs.
Ignore AIClient/Library and AIClient/HybridCLRData permanently; include HybridCLR/YooAsset project setup and UI tooling.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-21 16:02:58 +08:00

23 lines
678 B
C#

using System.Text;
using TMPro;
using UnityEditor;
using UnityEngine;
public static class UIGenVerifyFont
{
public static string Run()
{
var go = AssetDatabase.LoadAssetAtPath<GameObject>("Assets/Bundles/UI/Prefab/UI_ConfirmDialog.prefab");
if (go == null) return "NO_PREFAB";
var tmps = go.GetComponentsInChildren<TextMeshProUGUI>(true);
var sb = new StringBuilder();
sb.Append("count=").Append(tmps.Length).Append(';');
foreach (var t in tmps)
{
sb.Append(t.name).Append('=');
sb.Append(t.font != null ? t.font.name : "null").Append(';');
}
return sb.ToString();
}
}