So problem is, asset bundle system and code works with no problem at unity editor and desktop (i7, over 40g ram) environment, but at nintendo switch, it does not progressed and stuck at bundle load code part.
I am very annoyed and don’t know why and how to resolve…
Please help.
IEnumerator TitleBundleCo()
{
if (titleBundleComplete) yield break;
titleBundleComplete = true;
var publicObjectHandler = Addressables.LoadAssetsAsync<GameObject>("Public_Object", null);
var publicUIHandler = Addressables.LoadAssetsAsync<GameObject>("Public_UI", null);
var publicNGUIHandler = Addressables.LoadAssetsAsync<GameObject>("Public_NGUI", null);
var scriptPrefabHandler = Addressables.LoadAssetsAsync<GameObject>("ScriptPrefab", null);
var iconHandler = Addressables.LoadAssetsAsync<Sprite>("Icon", null);
var soundHandler = Addressables.LoadAssetsAsync<AudioClip>("Sound", null);
yield return new WaitUntil(() =>
publicObjectHandler.IsDone && publicUIHandler.IsDone && scriptPrefabHandler.IsDone &&
iconHandler.IsDone && soundHandler.IsDone);
yield return new WaitUntil(() => PublicObjectBundleCompleted(publicObjectHandler));
So from above, game process does not proceed even after hours because of WaitUntil loop, that means load asset does not finished.
I don’t suspect Ram problem even if switch’s allowed Ram space is 3Giga for game, because currently my game’s total size is 1.6Giga and total addressable bundle asset’s size is 0.6giga.
Then, what is problem?