FontStyle.Italic Manual     Reference     Scripting  
Scripting > Enumerations > FontStyle
FontStyle.Italic

FontStyle.Italic

Description

Italic style applied to your texts.

JavaScripts
guiText.fontStyle = FontStyle.Italic;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

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