Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

GUIStyle.font

Cambiar al Manual
public Font font;

Descripción

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

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnGUI() { Debug.Log("Font name: " + GUI.skin.button.font.name); } }