ドキュメント

Unity Engine

Unity Engine

GetHeight()

Gets the height of the window.
読み終わるまでの所要時間 1 分最終更新 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}"); }}