Version: 2020.2

Screen.autorotateToPortrait

切换到手册
public static bool autorotateToPortrait ;

描述

是否允许自动旋转到纵向模式?

orientation 设置为 AutoRotation 时,会考虑该设置。