Version: 2021.3

Screen.orientation

切换到手册
public static ScreenOrientation orientation ;

描述

This has the same functionality as Screen.orientation and also mimics platform-specific behavior in the Unity Editor.