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

Text style collection. Used by text boxes. More...

Inherits ScriptableObject.

Public Member Functions

void ComputeRendererCount ()
 Compute how many different renderers are needed for the style collection. Used in the editor. More...
 
TextRenderer[] CreateRenderers (TextBox box)
 Create text renderer children for a text box. More...
 

Public Attributes

TextStyle[] styles
 Styles defined by the collection. The first style is the default and should have all values set. More...
 

Detailed Description

Text style collection. Used by text boxes.

Member Function Documentation

void CatlikeCoding.TextBox.TextStyleCollection.ComputeRendererCount ( )

Compute how many different renderers are needed for the style collection. Used in the editor.

TextRenderer [] CatlikeCoding.TextBox.TextStyleCollection.CreateRenderers ( TextBox  box)

Create text renderer children for a text box.

Returns
The created renderers.
Parameters
boxA text box.

Member Data Documentation

TextStyle [] CatlikeCoding.TextBox.TextStyleCollection.styles

Styles defined by the collection. The first style is the default and should have all values set.