Version: 2020.3

Screen.autorotateToPortrait

切换到手册
public static bool autorotateToPortrait ;

描述

Enables auto-rotation to portrait.

Enables auto-rotation to portrait. This property is used when orientation is set to AutoRotation.