Don't work orientation screen.

public ScreenOrientation editorOrientation;

void Update () {

ScreenOrientation screenOrientation = Application.isEditor ? editorOrientation: Screen.orientation;
if ( Screen.orientation == ScreenOrientation.Portrait) {

print(“Portrait”);

}
else {

print(“ANY”);
}

I set editorOrientation = Landscape
but console write - “Portrait”
Please help me.

Screen.orientation …