Game Crashing on Android when loading scene
Hi There ! I have a very serious problem I have made a game and everything works well in the editor I have imported the project to Android The Menu and Credits scene work well but when I click on the button to open up the scene of my character, it doesn't load it... Instead the button appears to be clicked and after nearly 10 seconds, the game crashes and returns me to the homescreen of my phone... Really Serious Tried searching everywhere on the net for help but in vain, hoping that someone could help me here, thanks...
Answer by Jessespike · Jul 25, 2016 at 07:55 PM
Sounds like it's loading too much to handle. Check the profiler and build log for unnecessarily large assets.
And should I delete the large assets ? the game worked well before i added a big city
Yeah ! You were right @Jessespike I removed the city and the game worked well on my Android Device But what should I do so that the game works well with the city on Android ??? :(
Wohooooooooooo !!!!!!!! I made it worked well Just needed to make the textures smaller... reduced all my textures to 32 https://docs.unity3d.com/$$anonymous$$anual/ReducingFilesize.html
If it lags on Android, I make a new empty gameObject then I assign the following script so that it increases the Frame Per Second (FPS) of my game
Here's that script: (call it ForceFramerate)
using UnityEngine; using System.Collections;
public class ForceFramerate : $$anonymous$$onoBehaviour {
public int Target = 15;
void Update () {
Application.targetFrameRate = Target;
}
}
Answer by seansteezy · Oct 19, 2016 at 12:41 PM
Yeah this was happening to me on mobile b/c I'm trying to load a huge scene with 4k textures... oops! Banged my head against a wall for a while until I came across this post, turns out all I needed to do was in the quality settings, change the texture resolution to Quater Res (1/4) and everything worked itself out.
Thanks @jessespike!
Answer by hassanreskining · Aug 24, 2017 at 02:28 PM
SOLUTION Hi everyone !!!!!!!!! I've searsh in google about 2 weeks and I just find the solution Iit is in File --> Player sitting ---> Publishing sitting ----> unsheck Split Application Binary.
Answer by AnisimovArthur · Feb 25, 2020 at 07:52 AM
Hey,
In my case the problem was in a camera in a scene. I change 'Target Eye' to none (main display) and 'clear flags' to Skybox.
Hope it will help!
Your answer
![](https://koobas.hobune.stream/wayback/20220612085434im_/https://answers.unity.com/themes/thub/images/avi.jpg)