Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

TextMesh.font

Switch to Manual
public Font font;

Description

The Font used.

using UnityEngine;

public class Example : MonoBehaviour { void Start() { // Set the text of the attached Text mesh Font newFont; GetComponent<TextMesh>().font = newFont; } }

Did you find this page useful? Please give it a rating: