public static GUILayoutOption Height (float height);

Description

Передается элементу управления чтобы дать ему абсолютную высоту.

Важно: Это переопределяет параметр автоматической высоты.


Fixed Height for a GUI Control.

using UnityEngine;

public class ExampleScript : MonoBehaviour { // Draws a button with a fixed height void OnGUI() { GUILayout.Button("A Button with fixed height", GUILayout.Height(300)); } }