GUILayout.Label("Hello World", GUILayout.Height(50));
GUILayout.Button("Click me!", GUILayout.Height(GUI.skin.button.lineHeight));This code will create a button with the text "Click me!" and a height based on the current GUI skin's button lineHeight property. Package Library: The GUILayout Height method is part of the Unity GUI (UnityEngine.GUI) package, which is included in every Unity project by default.