- Home /
Question by
GrayLightGames · Jan 19, 2015 at 03:51 AM ·
iosmobileandroid iphone
Find mobile device status bar dimensions in script?
I'm making an app for Android and iOS and I'd like to leave the status bar (the bar at the top of your phone) visible.
Is there a way to retrieve the height of the status bar in unity?
I don't want the status bar to overlay on top of my app... ultimately I would like to set my effective screen height to be Screen.height - StatusBar.height in order to position my graphics in the visible area.
Thanks much in advance, sorry if this has been answered in another post. All I could find was a discussion about why you might want to keep the status bar visible. I'd like to if possible.
Comment