Unity 设置Android端设备UI界面自动旋转功能

void Awake() { //设置屏幕自动旋转, 并设置支持的方向 Screen.orientation = ScreenOrientation.AutoRotation; Screen.autorotateToLandscapeLeft = true; Screen.autorotateToLandscapeRight = true; Screen.a
相关文章
相关标签/搜索