Version: 2020.3
言語: 日本語
public static GUILayoutOption Height (float height);

説明

決められた高さをコントロールに与えるオプション

注意: このオプションは自動で高さが決定されるレイアウトパラメーターを上書きします。


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)); } }