using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class groy : MonoBehaviour {
void Awake()
{
//设置屏幕正方向在Home键右边
Screen.orientation = ScreenOrientation.LandscapeRight;
}
void Start ()
{
//设置屏幕自动旋转, 并置支持的方向
Screen.orientation = ScreenOrientation.AutoRotation;
Screen.autorotateToLandscapeLeft = true;
Screen.autorotateToLandscapeRight = true;
Screen.autorotateToPortrait = false;
Screen.autorotateToPortraitUpsideDown = false;
}
}
作者:Czhenya 发表于2017/8/18 10:09:10 原文链接
阅读:22 评论:0 查看评论