I have encountered an issue where my game’s scene appears completely black when built for Android, even though the UI elements are present. In the Unity Editor, everything renders correctly. Notably, my scene does not contain any 3D objects or lights, only UI elements. Previously, I was able to build for Android without any problems, even without adding a camera to the scene. However, now the entire screen is black on Android devices.
Steps Taken:
Verified that the UI elements are correctly set up and active in the scene.
Checked Player Settings to ensure that Graphics API and other relevant settings are properly configured.
Attempted to add a camera to the scene and adjust its settings, but the issue persists.
Verified that the Canvas settings are correct and that the Render Mode is set to “Screen Space - Overlay.”
Questions:
What could be causing the scene to render as completely black on Android when there are no 3D elements or lights, only UI?
Are there any additional settings or configurations that I should check to resolve this issue?
Could this be related to changes in Unity’s handling of UI rendering in recent versions?
Well, I built it for Windows and everything worked fine What is the problem that everything is black in Android?
Thank you for your assistance!
after checking everything, I realized that the problem is with the localization package, and when I deleted it, the scene was no longer black. I myself feel that the tables I created are very heavy, and the init takes a long time, and the scene will not load until it is inited! ! What do you think? What should I do to solve this problem?
In the localization settings, there are two settings for asynchronous loading. If these are on “Force Synchronous”, perhaps you could switch them to “Default” instead? Maybe this will help you?
I have the same problem, and everything works fine on the 2021 version. After upgrading to Unity 6, some Android devices started to have black screens. I still haven’t solved it yet, and I will try your method.
I have the same problem but with version 2023, on some Android devices the screen is completely dark but the UI is displayed. Have you found a way to get rid of this?
With these settings, the issue in Localization was resolved:
- Setting Asynchronous Behavior to Default in both Asset Database and String Database.
- Setting Preload Behavior to Preload All Locales.
- Disabling Initialize Synchronously.
- Enabling Preload for all defined String Tables.
thanks, it was really painful to find the reason for blackscreen… still no idea why this happened to my project since i ws able to get builds yesterday..
also one thing i noticed is that link* file changes a lot for some reason even if i don’t change any localization setting or content..
[SOLVED!]
Update:
After using Logcat i realised that the shadow was the problem,
as soon as i read something about
NullReferenceException
ShadowMesh2D.SetShape
i played around with the shadow settings, setting the casting source from sprite renderer to shape editor fixed the issue for me! (just in case somebody else encounters the problem…
(Old post:
Hello!
So sorry for the noob question:
Where do i find these settings? (Asynchronous Behavior, Preload, …)
My apologies, but i simply have no clue how to find those 
Unity 6.2, URP, Android 16
My game runs fine on my android phone with Unity Remote.
Build and run worked fine until i implemented lighting and post processing.
Disabling lights and post processing does not fix the issue:
On start, the screen goes totally black after the Unity Logo.
Even if i disable the menu and let the game run directly,
i hear it working, i can move the player, but screen stays black…
If i let it run for a moment, it sometimes becomes visible, but starts glitching also
Edit:
Sorry, i didn’t realize that i had to install the package “localization”…
I tried the suggested solution, all settings set to the suggested value (except for string tables since i did not find that one).
Unfortunately, this didn’t solve the issue - if anybody has another idea, i would be very thankful!)
I would strongly advise you get to the unity discord for support ! You’re lacking some basic C# knowledge, unrelated to unity, that would help you solve your issue.
If i could put it simply, and start from the beginning :
A variable is like a labeled box. There are two labels on this box : one for its cute little name you can chose, and one describing the type of what’s inside.
A “Null Reference Exception” occurs when the code is trying to blindly get what’s inside a box, but it hasn’t even checked if there is actually something first.
And here, you get some kind of context : ShadowMesh2D.SetShape. So you know it’s related to 2D Shadows.
And not to localization ! Which is a package made to translate things in your game, to put it simple.