Switches the screen resolution.

切换屏幕分辨率。

A width by height resolution will be used. If no matching resolution is supported, the closest one will be used.

应用有宽高的分辨率,如果没有匹配的分辨率被支持,将使用最接近的分辨率。

If preferredRefreshRate is 0 (default) Unity will switch to the highest refresh rate supported by the monitor.

If preferredRefreshRate is not 0 Unity will use it if the monitor supports it, otherwise will choose the highest supported one.

如果preferredRefreshRate为0(默认),Unity将切换到显示器支持的最高刷新率。如果preferredRefreshRate不是0,如果显示器支持,Unity将使用它,否则将选择支持的最高的一个。

In the web player you may only switch resolutions after the user has clicked on the content. The recommended way of doing it is to switch resolutions only when the user clicks on a designated button.

在网络播放器,你只可以在用户点击内容之后切换分辨率。推荐的方法是只在用户点击一个指定的按钮时切换分辨率。

On Android fullscreen controls the SYSTEM_UI_FLAG_LOW_PROFILE flag to View.setSystemUiVisibility(), on devices running Honeycomb (OS 3.0 / API 11) or later.

在Android全屏是控制SYSTEM_UI_FLAG_LOW_PROFILE到View.setSystemUiVisibility(),在Android系统3.0或更高版本的设备。

On Windows Store Apps, switching to non-native resolution is only supported starting from Windows 8.1 and newer.

在Windows Store Apps切换到非本地分辨率,仅支持Windows 8.1或更高版本。

A resolution switch does not happen immediately; it will actually happen when the current frame is finished.

全屏开关不会立即发生,在当前帧完成时它才实际发生。

// Switch to 640 x 480 fullscreen 全屏模式

Screen.SetResolution(640, 480, true);

// Switch to 640 x 480 fullscreen at 60 hz

Screen.SetResolution (640, 480, true, 60);

// Switch to 800 x 600 windowed 窗口模式

Screen.SetResolution (800, 600, false);

unity设置分辨率android,Unity Screen Screen.SetResolution 设置分辨率相关推荐

  1. IIS 添加mime 支持 apk,exe,.woff,IIS MIME设置 ,Android apk下载的MIME 设置 苹果ISO .ipa下载mime 设置...

    IIS 添加mime 支持 apk,exe,.woff,IIS MIME设置 ,Android apk下载的MIME 设置 苹果ISO .ipa下载mime 设置 原文:IIS 添加mime 支持 a ...

  2. 相机寻找最适合分辨率android,ARCore:获取相机的分辨率(ARCore : Get Camera's resolution)...

    ARCore:获取相机的分辨率(ARCore : Get Camera's resolution) 有没有办法获得相机的分辨率? (除非从头开始使用Android)我没有在session.setDis ...

  3. unity splash image android,Unity Splash Image 与 Launch场景的背景图无缝衔接

    注:unity版本5.2.2f1. 一.for android 1.图片的导入设置,确保图片的实际尺寸不被改变. Texture Type: 没有能设置成Texture, 因为它的改变图片的实际尺寸. ...

  4. unity udp广播 android,unity发送局域网广播信息

    开发中有事须要一个功能是教师机经过广播发送给学生机实现通信,这时能够考试使用socket的udp广播功能来实现,代码以下:socket using System; using System.Text; ...

  5. android manifest 分辨率,android程序界面自动适应屏幕分辨率例子

    为不同分辨率的手机创建界面 1,首先进入res 文件夹下. 2,创建一个名为"layout-1024x768"文件夹, 其中1024x768 是屏幕分辨率的大小,值得注意的是分辨率 ...

  6. android timepicker 设置间隔,android – 如何在TimePicker中设置AM / PM?

    我在我的应用程序中使用TimePicker.每当用户使用TimePicker打开屏幕时,我会使用当前时间对其进行初始化.当我这样做时,TimePicker显示AM而不是PM.为什么会这样?我的代码中有 ...

  7. android手机连接无线路由器上网设置,手机连接无线网络怎么设置?手机Wifi无线网设置教程...

    随着智能手机无线上网的流行,如今很多家庭都会组建Wifi无线网络,目前组建Wifi网络,大致有两种情况,一种是使用无线路由器,另外一种是将笔记本变身无线无路由器,从而实现智能手机也可以免费Wifi上网 ...

  8. Screen.SetResolution 设置分辨率

    Screen.SetResolution 设置分辨率 JavaScript ⇒ public static function SetResolution(width: int, height: int ...

  9. unity 启动选择分辨率_Unity发布exe去窗口设置分辨率

    前段时间做游戏pc端,要求exe运行去窗口,还要固定分辨率 unity有设置分辨率的API:Screen.SetResolution 但是使用这个会跟win32 api冲突 为了去窗口只有全部使用wi ...

最新文章

  1. HUST 1586 数字排列
  2. LeetCode-笔记-143. 重排链表
  3. 石大ACM2587解题报告
  4. 云服务器怎么用于网站吗,云服务器怎么使用
  5. 【MM配置】Global Data 全局数据相关配置
  6. vb实时错误6 溢出_java内存溢出系列(6): Out of swap space?
  7. JDK源码(7)-Boolean
  8. [转]Java 对象锁-synchronized()与线程的状态与生命周期
  9. python编程新手常犯的错误_Python新手常犯的10个错误 - 里维斯社
  10. gdb在cygwin下的安装
  11. 思科ccna教材_什么是CCNA或Cisco认证网络助理?
  12. php把日期转成时间戳,php如何把日期转为时间戳
  13. Wagtail 教程 3:引入 Bootstrap 4,Font Awesome,页面布局优化
  14. Markdown箭头总汇
  15. adjacent cache line prefetch
  16. concat,ucase/lcase,left/right,length,replace
  17. 计算机显示器的视频接口有什么不同,电脑显示器用VGA还是HDMI好有什么区别
  18. Spring MVC 拦截器执行流程
  19. 2015 奇妙的数字
  20. webpack版本升级的差异大版本更迭

热门文章

  1. 解决uni-app微信小程序input输入框在底部时,键盘弹起页面整体上移问题
  2. Matlab 应用GPU加速
  3. 基础Java练习16:学生喂养动物
  4. 北大igem生物计算机,北京大学iGEM团队在2018国际大赛中再获佳绩
  5. 1-3 js基础还是看caicia吧(老师说小游戏)
  6. 王半仙儿的日记-0007
  7. Android 8.0(Android O) AccountManager 行为变更
  8. 小米打印机显示服务器出错,关于小米笔记本连接不上网络打印机的处理方法!莫名其妙····...
  9. 177本名著浓缩成了177句话!经典收藏!
  10. 11-VulnHub-SkyTower 1