1.全阶段异步加载与AB包预加载2.node加载无效的问题依然存在
This commit is contained in:
@@ -128,17 +128,19 @@ namespace Demo.Game
|
||||
childFileStream.Close();
|
||||
}
|
||||
//不刷新世界,直接加载
|
||||
var targetChildSO = so.LoadSubScript(type, childFile);
|
||||
// 打开手动编辑
|
||||
try
|
||||
so.StartCoroutine(so.LoadSubScriptAsync(type, childFile, targetChildSO =>
|
||||
{
|
||||
DefaultScriptUtility.OpenScriptFile(targetChildSO);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Debug.LogError($"Cannt open {childFile}", so);
|
||||
Debug.LogException(ex, so);
|
||||
}
|
||||
// 打开手动编辑
|
||||
try
|
||||
{
|
||||
DefaultScriptUtility.OpenScriptFile(targetChildSO);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Debug.LogError($"Cannt open {childFile}", so);
|
||||
Debug.LogException(ex, so);
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user