Выберите подходящий для вас язык программирования. Все примеры кода будут представлены на выбранном языке.
class in UnityEngine
Благодарим вас за то, что вы помогаете нам улучшить качество документации по Unity. Однако, мы не можем принять любой перевод. Мы проверяем каждый предложенный вами вариант перевода и принимаем его только если он соответствует оригиналу.
ЗакрытьПо определённым причинам предложенный вами перевод не может быть принят. Пожалуйста <a>попробуйте снова</a> через пару минут. И выражаем вам свою благодарность за то, что вы уделяете время, чтобы улучшить документацию по Unity.
Закрыть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.
autorotateToLandscapeLeft | Allow auto-rotation to landscape left? |
autorotateToLandscapeRight | Allow auto-rotation to landscape right? |
autorotateToPortrait | Allow auto-rotation to portrait? |
autorotateToPortraitUpsideDown | Allow auto-rotation to portrait, upside down? |
currentResolution | The current screen resolution (Read Only). |
dpi | The current DPI of the screen / device (Read Only). |
fullScreen | Is the game running fullscreen? |
height | The current height of the screen window in pixels (Read Only). |
orientation | Specifies logical orientation of the screen. |
resolutions | All fullscreen resolutions supported by the monitor (Read Only). |
sleepTimeout | A power saving setting, allowing the screen to dim some time after the last active user interaction. |
width | The current width of the screen window in pixels (Read Only). |
SetResolution | Switches the screen resolution. |