Catlike Coding
Unity Code Documentation
Public Attributes | List of all members
CatlikeCoding.TextBox.TextStyle Class Reference

Text style definition. More...

Public Attributes

bool absoluteFontScale
 Whether fontScale is absolute or relative to the current font scale. More...
 
Color32 color
 Color to use. This is a Color32 for performance. More...
 
BitmapFont font
 Font to use. This is allowed to be null. More...
 
float fontScale
 Font scaling to use. This can be either absolute or relative. More...
 
bool hasColor
 Toggles whether the style defines a color. More...
 
bool hasFontScale
 Toggles whether the style defines a font scale adjustment. More...
 
bool hasLetterSpacing
 Toggles whether the style defines a letter spacing adjustment. More...
 
bool hasLineScale
 Toggles whether the style defines a line scale adjustment. More...
 
float letterSpacing
 Letter spacing adjustment. More...
 
float lineScale
 Line scale to use. The used line height is a factor of this and the current font scale. More...
 
string name
 Style name. More...
 
TextRenderer renderer
 Renderer to use for the style. This is allowed to be null. More...
 
int rendererId
 Identifier of the used renderer. Do not modify. More...
 

Detailed Description

Text style definition.

Member Data Documentation

bool CatlikeCoding.TextBox.TextStyle.absoluteFontScale

Whether fontScale is absolute or relative to the current font scale.

Color32 CatlikeCoding.TextBox.TextStyle.color

Color to use. This is a Color32 for performance.

BitmapFont CatlikeCoding.TextBox.TextStyle.font

Font to use. This is allowed to be null.

float CatlikeCoding.TextBox.TextStyle.fontScale

Font scaling to use. This can be either absolute or relative.

bool CatlikeCoding.TextBox.TextStyle.hasColor

Toggles whether the style defines a color.

bool CatlikeCoding.TextBox.TextStyle.hasFontScale

Toggles whether the style defines a font scale adjustment.

bool CatlikeCoding.TextBox.TextStyle.hasLetterSpacing

Toggles whether the style defines a letter spacing adjustment.

bool CatlikeCoding.TextBox.TextStyle.hasLineScale

Toggles whether the style defines a line scale adjustment.

float CatlikeCoding.TextBox.TextStyle.letterSpacing

Letter spacing adjustment.

float CatlikeCoding.TextBox.TextStyle.lineScale

Line scale to use. The used line height is a factor of this and the current font scale.

string CatlikeCoding.TextBox.TextStyle.name

Style name.

TextRenderer CatlikeCoding.TextBox.TextStyle.renderer

Renderer to use for the style. This is allowed to be null.

int CatlikeCoding.TextBox.TextStyle.rendererId

Identifier of the used renderer. Do not modify.