update UIElements

This commit is contained in:
何冠峰
2025-01-20 17:13:20 +08:00
parent 5e2fc84ebf
commit 7c435f6dc0
4 changed files with 68 additions and 2 deletions
@@ -89,6 +89,16 @@ namespace YooAsset.Editor
this.Add(_listView);
}
/// <summary>
/// 设置标题
/// </summary>
public void SetHeaderTitle(string elementName, string headerTitle)
{
var toolbarBtn = _toolbar.Q<ToolbarButton>(elementName);
if (toolbarBtn != null)
toolbarBtn.text = headerTitle;
}
/// <summary>
/// 添加单元列
/// </summary>