用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:screen:screen

Screen 屏幕

class in UnityEngine

Description 描述

Access to display information.

访问显示器的分辨率信息。

Screen class can be used to get the list of supported resolutions, switch the current resolution, hide or show the system mouse pointer.

Screen类能用来获取支持的分辨率列表,切换当前分辨率。

Static Variables 静态变量

autorotateToLandscapeLeftAllow auto-rotation to landscape left?
允许自动旋转为左横向。Home键在左侧。
autorotateToLandscapeRightAllow auto-rotation to landscape right?
允许自动旋转为右横向。Home键在右侧。
autorotateToPortraitAllow auto-rotation to portrait?
运行屏幕自动旋转到纵向?Home按钮在下方。
autorotateToPortraitUpsideDownAllow auto-rotation to portrait, upside down?
允许自动旋转为左横向。Home按钮在上方。
currentResolutionThe current screen resolution (Read Only).
当前屏幕的分辨率。(只读)
dpiThe current DPI of the screen / device (Read Only).
当前屏幕的DPI(只读)。
fullScreenIs the game running fullscreen?
游戏是否运行在全屏模式?
heightThe current height of the screen window in pixels (Read Only).
以像素单位,屏幕窗口的当前高度。(只读)
orientationSpecifies logical orientation of the screen.
指定屏幕的逻辑方向。
resolutionsAll fullscreen resolutions supported by the monitor (Read Only).
显示器支持的所有全屏分辨率。(只读)
sleepTimeoutA power saving setting, allowing the screen to dim some time after the last active user interaction.
省电设置,最后活跃用户交互之后,过一些时间,使屏幕变暗。
widthThe current width of the screen window in pixels (Read Only).
屏幕窗口的当前宽度,单位像素(只读)。

Static Functions 静态函数

SetResolutionSwitches the screen resolution.
切换屏幕分辨率。
script/unityengine/classes/screen/screen.txt · 最后更改: 2016/08/02 05:29 (外部编辑)