Bug (?) changes screen resolution after unlock phone?
Hey, I'm currently developing my first android game and I found a bug (I guess). I've already searched for similar problems but I'm not able to find any relevant answer, so every little help is appreciated.
My game is landscape oriented and I've already locked the rotation to landscape only (under the player settings), the game runs as expected but when I lock and immediately unlock the phone the screen splits in half and the game only run on the left side (showing the background color on the right side).
It looks like the game is trying to run on portrait mode, I can't post a print screen right now but I will post an image below to help demonstrate what happens.
I've tested this in different phones, this "bug" only occurred in phones with android 7 and below, I was never able to reproduce it with screen rotation enabled (on the phone settings) and it doesn't always happen (but seems the orientation of the "unlock swipe" has something to do with it). I'm working on unity 2018.2.6f1 version.
I'm not sure if it is a bug or I'm doing something wrong but please help me solve this problem.
Your answer
Follow this Question
Related Questions
Phone app Resolution and Screen Size 0 Answers
My game randomly crashes on some devices why ? and how do i fix ? 1 Answer
Why is my scene loading differently on Android than other platforms? 0 Answers
SureFire way to stop Multitouch ? 2 Answers
Bug unity 5.2.1 Rendering UI With android 4.1.2 Jelly Bean 1 Answer