Android: How do I force only portrait orientation?

The only setting I can find regarding orientation in the editor is in Player Settings, under Android, there is a Default Orientation option. But that doesn’t prevent someone from rotating their device and having autorotate change the orientation of the game.

I thought there was an option somewhere to disable certain orientations? I’m having a hard time finding this, and searching here/google for a solution is surprisingly unhelpful. There is a lot of talk about changing the orientation via code and in xml manifests, but how do I do it in the editor?

In Unity 5 I found the options for disabling different orientations under the Edit >> Project Settings >> Player.

Then under “Resolution and Presentation” group you can see the “Orientation” sub group, then you will find the relevant “Default Orientation” option. You can set it to Portrait from the dropdown menu here to force orientation.

This disabled the auto orientation, so rotating the phone around will not cause the orientation to change.

how do i stop rotate only one scence?

I want to use all activities in my form in landscape or portrait. When user select orientation - this is valid for all activities. Tried with “behind” option orientation. According to Google - orientation will depend on previous activity. DinarRecaps.com

My first activity use setRequestedOrientation to set selected from user orientation.

Next activities have to follow same orientation. Do I have to put setRequestedOrientation in their code too? Or really on ‘behind’ parameter in manifest? Putting setRequestedOrientation may be cause onCreate again?

UPDATE:
Tried “portrait” and setRequestedOrientation() - result is onCreate was called 2 times.

Problem is in next activity → because of “portrait” in first activity - android started next activity with same orientation. It ignores “landscape” orientation which was set by me.