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

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

View File

@@ -39,6 +39,7 @@
## master ## master
* (2021.08.25) Fixed an issue where the theme switch could not be save to the scene (#166)
* (2021.08.24) Added `Animation`'s `alongWithLinePath` * (2021.08.24) Added `Animation`'s `alongWithLinePath`
* (2021.08.22) Added `Serie`'s `ignoreLineBreak` (#164) * (2021.08.22) Added `Serie`'s `ignoreLineBreak` (#164)
* (2021.08.22) Fixed `Axis` label may not be updated when `DataZoom` is turn on (#164) * (2021.08.22) Fixed `Axis` label may not be updated when `DataZoom` is turn on (#164)

View File

@@ -39,6 +39,7 @@
## master ## master
* (2021.08.25) 修复`Theme`主题切换无法保持到场景上的问题 (#166)
* (2021.08.24) 增加`Animation``alongWithLinePath`参数设置折线轨迹匀速动画 * (2021.08.24) 增加`Animation``alongWithLinePath`参数设置折线轨迹匀速动画
* (2021.08.22) 增加`Serie``ignoreLineBreak`参数设置忽略数据连线是否断开 (#164) * (2021.08.22) 增加`Serie``ignoreLineBreak`参数设置忽略数据连线是否断开 (#164)
* (2021.08.22) 修复`Axis``DataZoom`开启时`Label`可能不更新的问题 (#164) * (2021.08.22) 修复`Axis``DataZoom`开启时`Label`可能不更新的问题 (#164)

View File

@@ -643,6 +643,9 @@ namespace XCharts
{ {
m_Theme.CopyTheme(theme); m_Theme.CopyTheme(theme);
SetAllComponentDirty(); SetAllComponentDirty();
#if UNITY_EDITOR
UnityEditor.EditorUtility.SetDirty(this);
#endif
} }
/// <summary> /// <summary>

View File

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