font
The font to use for rendering. If null, the default font for the current GUISkin is used instead.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.IMGUIModule
public Font font { get; set; }
Examples
using UnityEngine;public class Example : MonoBehaviour{ // Prints name of the font that button is using. void OnGUI() { Debug.Log("Font name: " + GUI.skin.button.font.name); }}