LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

TextMesh.font

Switch to Manual
public Font font;

Description

The Font used.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Font newFont; void Example() { GetComponent<TextMesh>().font = newFont; } }