I am using asynchronous loading with a loading screen, if the user clicks Windows will show the “program not responding” menu indicating that the program has crashed and allows the user to kill the program. How can I prevent Windows from doing this?
how are you doing the asynchronous load? can we see that code chunk?
It runs the top method here (which calls the next ones)
public void LoadDemoAsync(int demo)
{
Map.DEMO_TO_PLAY = demo;
ClickAsync(1);
}
public void ClickAsync(int scene)
{
loadingImage.SetActive(true);
StartCoroutine(LoadSceneWithBar(scene));
}
IEnumerator LoadSceneWithBar(int scene)
{
asyncOperation = Application.LoadLevelAsync(scene);
while (!asyncOperation.isDone)
{
loadingBar.value = asyncOperation.progress;
yield return null;
}
}