Advertisement

屏幕涉及Screen知识点

阅读量:

1、静态属性

(1)常用

// 当前分辨率(所使用设备的显示规格)

复制代码
>       1. Rosolution r = Screen.currentResolution;

>  
>       2.  
>  
>       3. 当前屏幕分辨率的宽、高:r.width/r.height
>  
>  
>  
>  
> ```
复制代码
Screen.width/Screen.height
复制代码
复制代码
>     Screen.sleepTimeout = SleepTimeout.NeverSleep / SleepTimeout.SystemSetting(不息屏/系统设置)
>  
> ```

(2)使用频率较低  
// 判断运行时是否处于全屏状态
复制代码
Screen.fullScreen = true;
复制代码

// 窗口模式

独占全屏 FullSceenMode.ExclusiveFullScreen
全屏窗口 FullScreenMode.FullScreenWindow
最大化窗口 FullScreenMode.Maximi

全部评论 (0)

还没有任何评论哟~