1.全阶段异步加载与AB包预加载2.node加载无效的问题依然存在
This commit is contained in:
@@ -52,17 +52,13 @@ namespace Demo.Game
|
||||
</summary>
|
||||
<param name=""ab""></param>
|
||||
")]
|
||||
public void Load(string ab)
|
||||
public IEnumerator Load(string ab)
|
||||
{
|
||||
var ir = this.LoadAssetBundle(ab, x =>
|
||||
yield return this.LoadAssetBundle(ab, x =>
|
||||
{
|
||||
MaterialAssetBundlePath = ab;
|
||||
MaterialAssetBundle = x;
|
||||
});
|
||||
if (gameObject.activeInHierarchy)
|
||||
StartCoroutine(ir);
|
||||
else
|
||||
GetRoot().StartCoroutine(ir);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user