FontStyle.BoldAndItalic Manual     Reference     Scripting  
Scripting > Enumerations > FontStyle
FontStyle.BoldAndItalic

FontStyle.BoldAndItalic

Description

Bold and Italic styles applied to your texts.

JavaScripts
guiText.fontStyle = FontStyle.BoldAndItalic;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
guiText.fontStyle = FontStyle.BoldAndItalic;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
guiText.fontStyle = FontStyle.BoldAndItalic