UI系统组件

This commit is contained in:
2026-06-06 09:00:11 +08:00
parent fe4fd60083
commit d794b83ebe
107 changed files with 25690 additions and 476 deletions

View File

@@ -23,6 +23,9 @@ namespace BaseGames.UI.Theme
[Tooltip("启用时自动应用一次。运行时切换主题可手动调用 Apply()。")]
[SerializeField] private bool _applyOnEnable = true;
/// <summary>当前主题(供子控件如 <see cref="UIButton"/> 就近读取)。</summary>
public UIThemeSO Theme => _theme;
private void OnEnable()
{
if (_applyOnEnable) Apply();