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); }
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void OnGUI() { Debug.Log("Font name: " + GUI.skin.button.font.name); } }
Did you find this page useful? Please give it a rating: