diff --git a/Assets/06.UIFarme/RunTime/Base/BasePanel.cs b/Assets/06.UIFarme/RunTime/Base/BasePanel.cs index 57bd8cb..fdb0641 100644 --- a/Assets/06.UIFarme/RunTime/Base/BasePanel.cs +++ b/Assets/06.UIFarme/RunTime/Base/BasePanel.cs @@ -150,8 +150,7 @@ namespace Stary.Evo.UIFarme { if (panelParent == null) { - Debug.LogError($"UnityEvo:parent为空,{panelName}无法创建,进程已中断,请检查!!!!!"); - return null; + Debug.LogWarning($"UnityEvo:parent为空,{panelName}自动设置为root节点下,请检查是否正确!!!!!"); } if (this.activePanel != null) diff --git a/Assets/06.UIFarme/RunTime/Manager/PanelSystem.cs b/Assets/06.UIFarme/RunTime/Manager/PanelSystem.cs index 1f4c4cd..c117f13 100644 --- a/Assets/06.UIFarme/RunTime/Manager/PanelSystem.cs +++ b/Assets/06.UIFarme/RunTime/Manager/PanelSystem.cs @@ -99,7 +99,7 @@ namespace Stary.Evo.UIFarme /// /// 非热更模式传null /// - public async Task PushQueue(Transform parent,string packageName=null) where T : IBasePanel, new() + public async Task PushQueue(Transform parent=null,string packageName=null) where T : IBasePanel, new() { string panelName = typeof(T).Name; @@ -138,7 +138,7 @@ namespace Stary.Evo.UIFarme /// /// 非热更模式传null /// - public async Task PushStack(Transform parent,string packageName=null) where T : IBasePanel, new() + public async Task PushStack(Transform parent=null,string packageName=null) where T : IBasePanel, new() { string panelName = typeof(T).Name; diff --git a/Assets/06.UIFarme/package.json b/Assets/06.UIFarme/package.json index d296732..f4256b3 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.15", + "version": "1.0.16", "description": "UI模板框架工具", "unity": "2021.3", "unityRelease": "30f1",