Version: 2023.2
public Font font ;

描述

使用的 Font

另请参阅:text mesh component

using UnityEngine;

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