This version of Unity is unsupported.

Screen.autorotateToPortrait

public static bool autorotateToPortrait;

Description

Allow auto-rotation to portrait?

This setting is taken into account when orientation is set to AutoRotation.