Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GUIStyle.lineHeight

Switch to Manual
public float lineHeight;

Description

The height of one line of text with this style, measured in pixels. (Read Only)

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnGUI() { Debug.Log(GUI.skin.button.lineHeight); } }