mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-18 14:30:10 +00:00
修复Unity2018.3以下版本代码不兼容的问题
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user