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

FontStyle.Italic

Description

Italic style applied to your texts.

JavaScript
guiText.fontStyle = FontStyle.Italic;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

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