Question by
bekaurinika0 · Jan 31, 2020 at 10:34 AM ·
android buildscene-loadingscene-switchingcrashingscene-change
Game crashes after button is clicked to load scene
I have "Menu" and "Game" scenes in my game which work fine in the unity editor as well as when building as a .exe but when I build .apk for android it messes things up. Basically when I load the "Game" scene from "Menu" scene with play button it always works but takes few seconds, then I have 'menu' button in "Game" scene which should be loading the "Menu" scene but, when clicked, it makes screen kinda flash and then the app crashes.
I am using about 6 light sources simultaneously and have got high definition textures in game scene. I tried reducing textures to 1/8th and the game still crashes.
Menu scene func:
public void ToGame(){
SceneManager.LoadScene("Game");
}
Game scene func:
public void ToMenu(){
SceneManager.LoadScene("Menu");
}
Comment
I am having the same issue. have you figured out a potential solution?