font
The font to use for rendering. If null, the default font for the current GUISkin is used instead.
阅读时间1 分钟最后更新于 1 个月前
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); }}