mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-25 18:30:14 +00:00
修复Unity2018.3以下版本代码不兼容的问题
This commit is contained in:
@@ -78,7 +78,7 @@ namespace XCharts
|
|||||||
public static void DestroyAllChildren(Transform parent)
|
public static void DestroyAllChildren(Transform parent)
|
||||||
{
|
{
|
||||||
if (parent == null) return;
|
if (parent == null) return;
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR && UNITY_2018_3_OR_NEWER
|
||||||
if (PrefabUtility.IsPartOfAnyPrefab(parent.gameObject))
|
if (PrefabUtility.IsPartOfAnyPrefab(parent.gameObject))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user