This commit is contained in:
2025-08-08 12:59:27 +08:00
parent 3f7e099088
commit bf9b850999
3 changed files with 4 additions and 5 deletions

View File

@@ -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)

View File

@@ -99,7 +99,7 @@ namespace Stary.Evo.UIFarme
/// <param name="parent"></param>
/// <param name="packageName">非热更模式传null</param>
/// <typeparam name="T"></typeparam>
public async Task PushQueue<T>(Transform parent,string packageName=null) where T : IBasePanel, new()
public async Task PushQueue<T>(Transform parent=null,string packageName=null) where T : IBasePanel, new()
{
string panelName = typeof(T).Name;
@@ -138,7 +138,7 @@ namespace Stary.Evo.UIFarme
/// <param name="parent"></param>
/// <param name="packageName">非热更模式传null</param>
/// <typeparam name="T"></typeparam>
public async Task PushStack<T>(Transform parent,string packageName=null) where T : IBasePanel, new()
public async Task PushStack<T>(Transform parent=null,string packageName=null) where T : IBasePanel, new()
{
string panelName = typeof(T).Name;

View File

@@ -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",