修复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

@@ -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);