UI系统组件
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user