Catlike Coding
Unity Code Documentation
|
Base class for text renderers. These end up as child objects of a text box. More...
Inherits MonoBehaviour.
Inherited by CatlikeCoding.TextBox.TextMeshRenderer.
Public Member Functions | |
virtual void | Add (CharMetaData meta, Vector2 offset) |
Add a character. More... | |
virtual void | Apply () |
Perform any work that needs to be done after character have been added. More... | |
virtual void | Prepare () |
Perform any work that needs to be done before characters will be added, like clearing old data. More... | |
virtual void | SetClipBounds (Bounds2D clipBounds) |
Perform any work to support clipping. More... | |
Public Attributes | |
int | renderedCharCount |
How many characters to render. Will be set before Prepare is called. More... | |
TextBox | textBox |
Text box that uses the renderer. More... | |
Properties | |
virtual Bounds | Bounds [get] |
Get the 3D bounds of the rendered content. More... | |
Base class for text renderers. These end up as child objects of a text box.
|
virtual |
Add a character.
meta | Character meta data. |
offset | Additional offset. |
Reimplemented in CatlikeCoding.TextBox.TextMeshRenderer, and CatlikeCoding.TextBox.TextMeshCylinderRenderer.
|
virtual |
Perform any work that needs to be done after character have been added.
Reimplemented in CatlikeCoding.TextBox.TextMeshRenderer, CatlikeCoding.TextBox.TextMeshTorusRenderer, and CatlikeCoding.TextBox.TextMeshCircleRenderer.
|
virtual |
Perform any work that needs to be done before characters will be added, like clearing old data.
Reimplemented in CatlikeCoding.TextBox.TextMeshRenderer, and CatlikeCoding.TextBox.TextMeshCylinderRenderer.
|
virtual |
Perform any work to support clipping.
It is up to subclasses whether they support clipping.
clipBounds | Clip bounds. |
Reimplemented in CatlikeCoding.TextBox.TextMeshRenderer.
int CatlikeCoding.TextBox.TextRenderer.renderedCharCount |
How many characters to render. Will be set before Prepare is called.
TextBox CatlikeCoding.TextBox.TextRenderer.textBox |
Text box that uses the renderer.
|
get |
Get the 3D bounds of the rendered content.
It is up to subclasses whether they return useful bounds of not.