Since Unity 5.3, there's no more option to enable the status bar for Android builds. However, if you are building a non-fullscreen non-immersive application with Unity and want to keep the status bar, you may want to use this plugin.
For KitKat (Android 4.4) and later, where the immersive fullscreen mode is available, status bar is shown only when the immersive mode is off, so you have to set Screen.fullScreen to false in your scripts.
For JellyBean (Android 4.3) and earlier, when fullScreen is set to true, "lights out" mode is enabled - navigation and status bar are shown but dimmed. When fullScreen is set to false, full navigation and status bar are shown.
By default fullScreen is set to true in Unity.
This plugin also enables translucent status and navigation bars on KitKat (Android 4.4) and later versions by default. Follow the instructions in Usage to make them opaque.
com.unity3d.nostatusbar.UnityPlayerActivityStatusBar
activity as the MAIN/LAUNCHER oneUnityTransparentStatusBarTheme
to UnityStatusBarTheme
Screen.fullScreen = false;
to your Start()
method if you want the status bar shown on KitKat+ devicesgradlew assemble
from src/UnityShowAndroidStatusBar/Please refer to Google documentation for more details: https://developer.android.com/training/system-ui/index.html