修复Unity2019.2上的兼容问题

This commit is contained in:
monitor1394
2022-10-21 12:37:00 +08:00
parent b1eae7045b
commit bbab8d9b75
2 changed files with 2 additions and 1 deletions

View File

@@ -59,6 +59,7 @@
## master
* (2022.10.21) 修复`Unity2019.2`上的兼容问题
* (2022.10.18) 优化`Axis`的数值表现
* (2022.10.15) 修复`Axis``Label``DataZoom`开启时可能显示不正常的问题 (#227)
* (2022.10.14) 增加`DataZoom`对数值轴的支持

View File

@@ -691,7 +691,7 @@ namespace XCharts.Runtime
public void OnBeforeSerialize()
{
#if UNITY_EDITOR && UNITY_2019_1_OR_NEWER
#if UNITY_EDITOR && UNITY_2019_3_OR_NEWER
if (!UnityEditor.EditorUtility.IsDirty(this))
return;
UnityEditor.EditorUtility.ClearDirty(this);