I've got a problem with screen loading issue in iOS build, It works well in Android but the same build is not working properly in iOS.
While loading to the other screen sometimes it takes time to load and sometimes it may crash with an error in Xcode console.
----------
> iOS Console Error: "Execution of the command buffer was aborted due to an error during execution. Ignored (for causing prior/excessive GPU errors) (IOAF code 4)".
----------
I wrote this code in my game manager script for loading the screen.
----------
AsyncOperation asyncOperationScene = SceneManager.LoadSceneAsync("level"+ (DataManager.levelNumber + 1), LoadSceneMode.Additive);
loadingPanel.GetComponent().async = asyncOperationScene;
loadingPanel.SetActive(true);
asyncOperationScene.completed += AsyncOperationScene_completed;
----------
If someone could enlighten me I would really appreciate it!
*Thanks for your time!*
↧