Parallax for portrait screen

Hi all,

I’m making the car racing game that require portrait orientation (Android devices).When I change it to portrait, Unity default make the viewport base on screen height of camera, but in this case, I need the viewport base on screen width. Any solution for it ? Thanks.

Edit > Project Settings > Player > Resolution and Presentation > Default Orientation > Portrait

Then in your Game Window, in the top left corner, there is a resolution button, you can change that to a portrait resolution like 9:16 or enter a custom one.