diff --git a/Runtime/Utility/ChartHelper.cs b/Runtime/Utility/ChartHelper.cs index 20243ff6..415b97a7 100644 --- a/Runtime/Utility/ChartHelper.cs +++ b/Runtime/Utility/ChartHelper.cs @@ -78,7 +78,7 @@ namespace XCharts public static void DestroyAllChildren(Transform parent) { if (parent == null) return; -#if UNITY_EDITOR +#if UNITY_EDITOR && UNITY_2018_3_OR_NEWER if (PrefabUtility.IsPartOfAnyPrefab(parent.gameObject)) { return;