There a lots of way available to hide navigation bar from android apps, some are easy and some feels hard for newbies developers here today i am providing you some simple ways to hide navigation bar in android.
For unity users i got very easy to use unity free asset to hide navigation bar get this cool asset now.
https://www.assetstore.unity3d.com/en/#!/content/21774
After this i hope your problem will solved but if you still need some inside detail to work in script so here are official guide on this.
https://developer.android.com/training/system-ui/immersive.html
The main code from that official guide is here
// This snippet hides the system bars. private void hideSystemUI() { // Set the IMMERSIVE flag. // Set the content to appear under the system bars so that the content // doesn't resize when the system bars hide and show. mDecorView.setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar | View.SYSTEM_UI_FLAG_FULLSCREEN // hide status bar | View.SYSTEM_UI_FLAG_IMMERSIVE); } // This snippet shows the system bars. It does this by removing all the flags // except for the ones that make the content appear under the system bars. private void showSystemUI() { mDecorView.setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN); }
If you are still in problem try these answers.
http://answers.unity3d.com/questions/745669/hiding-the-navigationsystem-bar-in-android.html
http://forum.unity3d.com/threads/how-to-hide-android-softkeys-navigation-bars.172024/
+unity3DIY
you should see also
Guy gets caught running asset sharing site and got banned
Know The Unity Version Of A Unity Project Without Unity
Unity Remove Component Or Game Object
Comments
Post a Comment