diff --git a/Assets/06.UIFarme/RunTime/Base/BasePanel.cs b/Assets/06.UIFarme/RunTime/Base/BasePanel.cs index fdc3f37..57bd8cb 100644 --- a/Assets/06.UIFarme/RunTime/Base/BasePanel.cs +++ b/Assets/06.UIFarme/RunTime/Base/BasePanel.cs @@ -189,7 +189,7 @@ namespace Stary.Evo.UIFarme activePanel.name = this.GetType().Name; - if (!activePanel.GetComponentInChildren() || !activePanel.GetComponentInParent()) + if (!activePanel.GetComponentInChildren() && !activePanel.GetComponentInParent()) { Debug.LogError($"UnityEvo:panelParent上不存在Canvas组件,{panelName}无法正常运行,进程已中断,请检查!!!!!"); return null; diff --git a/Assets/06.UIFarme/package.json b/Assets/06.UIFarme/package.json index ddba372..d296732 100644 --- a/Assets/06.UIFarme/package.json +++ b/Assets/06.UIFarme/package.json @@ -1,7 +1,7 @@ { "name": "com.staryevo.uifarme", "displayName": "06.UIFarme", - "version": "1.0.14", + "version": "1.0.15", "description": "UI模板框架工具", "unity": "2021.3", "unityRelease": "30f1",