IsResizable()
Checks if the window can be resized manually.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Windowing
- Assembly: UnityEngine.WindowingModule
public bool IsResizable()
Returns
Type | Description |
|---|---|
| bool | True if the window can be resized manually, false otherwise. |
Remarks
The initial value comes from the setting in GameWindowCreationSettings. Use GameWindow.SetIsResizable to change it at runtime.
resizableOn QNX, and for a full-screen window on any platform, GameWindow.SetIsResizable has no effect, so this method keeps returning the value the window was created with.
Examples
using UnityEngine;using UnityEngine.Windowing;public class IsWindowResizableExample : MonoBehaviour{ void Start() { var window = GameWindow.Main; bool resizable = window.IsResizable(); Debug.Log($"Is window resizable: {resizable}"); }}