Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

GUIStyle.font

public var font: Font;

Description

The font to use for rendering. If null, the default font for the current GUISkin is used instead.

	// Prints name of the font that button is using.

function OnGUI() { Debug.Log("Font name: " + GUI.skin.button.font.name); }