Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsResizable()

Checks if the window can be resized manually.
Read time 1 minuteLast updated 12 days ago

Definition

public bool IsResizable()

Returns

Type

Description

boolTrue if the window can be resized manually, false otherwise.

Remarks

The initial value comes from the
resizable
setting in GameWindowCreationSettings. Use GameWindow.SetIsResizable to change it at runtime.
On 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}"); }}