修复Theme主题切换无法保持到场景上的问题 (#166)

This commit is contained in:
monitor1394
2021-08-26 20:42:11 +08:00
parent 9d53cf1e4e
commit adf10d0539
4 changed files with 8 additions and 0 deletions

View File

@@ -224,6 +224,9 @@ namespace XCharts
{
m_CheckTheme = m_Theme.theme;
m_Theme.CopyTheme(m_CheckTheme);
#if UNITY_EDITOR
UnityEditor.EditorUtility.SetDirty(this);
#endif
SetAllComponentDirty();
OnThemeChanged();
}