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
These are only supported for fonts set to use dynamic font rendering, except for the 'color' tag.
guiText.richText = true;
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Example() {
guiText.richText = true;
}
}
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def Example():
guiText.richText = true