기술 자료

Unity Engine

Unity Engine

GetHeight()

Gets the height of the window.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public int GetHeight()

Returns

Type

Description

intThe height of the window in pixels.

Examples

using UnityEngine;using UnityEngine.Windowing;public class WindowHeightExample : MonoBehaviour{ void Start() { var window = GameWindow.Main; int height = window.GetHeight(); Debug.Log($"Window height: {height}"); }}