Boot scene is InitialScene, open it and run game. you first enter the first level scene City_01, which has been added to BuildSettings. And when you scroll to end, then will load next level scene City_02 by Addressables.LoadSceneAsync, which scene is added to addressable group. And will crash now…
loading code is:
private void LoadChapterScene(int chapterId)
{
var chapterConfig = _contexts.gameConfig.GetEntityWithChapterItem(chapterId);
if (chapterConfig != null)
{
//LoadSceneAsync(chapterConfig.chapterItem.SceneAsset);
_loadSceneHandle = Addressables.LoadSceneAsync(chapterConfig.chapterItem.SceneAsset);
StartCoroutine(LoadRemoteScene());
}
}
private IEnumerator LoadRemoteScene()
{
while (!_loadSceneHandle.IsDone)
{
Debug.Log("LoadRemoteScene:" + _loadSceneHandle.PercentComplete);
yield return null;
}
}
[solved]AssetBundle is build under iOS platform, and load in editor, incompatible format.
5301072–533574–crash editor log.txt (23.4 KB)