var richText : boolean
Description
Enable HTML-style tags for Text Formatting Markup.
Supported tags are:
colored text, where "htmlcolor" is a html color string, like "#ff0000" or "red".
bold text
italic text
sized text
render using custom material index
, to render a single quad using the given material and UVs, used for embedding images in text.
These are only supported for fonts set to use dynamic font rendering, except for the 'color', 'material' and 'quad' tags.
GetComponent(TextMesh).richText = true;
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Example() {
GetComponent<TextMesh>().richText = true;
}
}
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def Example():
GetComponent[of TextMesh]().richText = true