Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

GameWindow

class in UnityEngine.Windowing

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Represents a native OS window managed by Unity's windowing system. This API is currently available only in EmbeddedLinux and QNX platforms.

The GameWindow class provides APIs to query and control window properties such as title, size, position, display, and fullscreen mode. It also supports asynchronous operations for moving, resizing, and destroying windows.

Static Properties

Property Description
MainGets the main window of the application.

Public Methods

Method Description
GetDisplayInfoGets the display information of the display that holds the window.
GetFullScreenModeGets the full-screen mode of the window.
GetHashCodeReturns the hash code for this window.
GetHeightGets the height of the window.
GetLogicalDpiGets the logical DPI of the window.
GetPositionGets the position of the window relative to the top-left corner of the screen.
GetResolutionGets the resolution of the window.
GetTitleGets the title of the window.
GetWidthGets the width of the window.
IsMainReturns true if this window is the main application window.
IsValidReturns true if this window is valid and not destroyed.
MoveToMoves the window to a new position on its current display asynchronously.
SetResolutionSets the resolution of the window.
SetTitleSets the title of the window.