Manual     Reference     Scripting  
  
Scripting > Enumerations > FontStyle   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Attributes
  • Enumerations
  • History
  • Index
  • FontStyle
  • All Members
  • Values
  • Bold
  • BoldAndItalic
  • Italic
  • Normal

FontStyle.Bold  

FontStyle.Bold

Description

Bold style applied to your texts.

JavaScript
guiText.fontStyle = FontStyle.Bold;

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

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