| DisposeAsync | Asynchronously disposes of the window and releases its resources.Use this method to dispose of a secondary window when you no longer need it. You cannot dispose of the main window. To close the main window, use Application.Quit instead. The DisposeAsync method clears all registered position and resolution change callbacks before it disposes of the window. After disposal, this GameWindow instance is no longer valid and you must not use it. The following code example demonstrates how to use this method to dispose of a secondary window. |
| GetDisplayInfo | Gets the display information of the display that holds the window. |
| GetFullScreenMode | Gets the full-screen mode of the window. |
| GetHashCode | Returns the hash code for this window. |
| GetHeight | Gets the height of the window. |
| GetLogicalDpi | Gets the logical DPI of the window.Note that the logical DPI defaults to 0 if it's not supported by the platform. |
| GetPosition | Gets the position of the window relative to the top-left corner of the screen. |
| GetResolution | Gets the resolution of the window.If the window is running in windowed mode, this function retrieves the window’s resolution, in contrast to Screen.currentResolution, which returns the resolution of the display. Note that the fetched resolution refresh rate defaults to 0 if retrieving the window's refresh rate isn't supported on the current platform. |
| GetTitle | Gets the title of the window. |
| GetWidth | Gets the width of the window. |
| IsMain | Returns true if this window is the main application window. |
| IsValid | Returns true if this window is valid and not destroyed. |
| MoveTo | Moves the window to a new position on its current display asynchronously. |
| PositionChangedThisFrame | Checks if the window's position changed during the current frame.Use this in MonoBehaviour.Update, MonoBehaviour.FixedUpdate, or MonoBehaviour.LateUpdate to check if the window's position changed during the current frame. |
| RegisterPositionChangedCallback | Registers a callback that is invoked when the window's position changes. |
| RegisterResolutionChangedCallback | Registers a callback that is invoked when the window's resolution changes. |
| ResolutionChangedThisFrame | Checks if the window's resolution changed during the current frame.Use this in MonoBehaviour.Update, MonoBehaviour.FixedUpdate, or MonoBehaviour.LateUpdate to check if the window's resolution changed during the current frame. |
| SetResolution | Sets the resolution of the window. |
| SetTitle | Sets the title of the window. |
| UnregisterPositionChangedCallback | Unregisters a callback so it is no longer invoked when the window's position changes. |
| UnregisterResolutionChangedCallback | Unregisters a callback so it is no longer invoked when the window's resolution changes. |