WoopWoop-Docs
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
WoopWoop.UI.TextRenderer Class Reference

Represents a text renderer UI element. More...

Inheritance diagram for WoopWoop.UI.TextRenderer:
WoopWoop.Renderer WoopWoop.Component

Public Member Functions

override void Update (float deltaTime)
 Updates the text renderer.
 
- Public Member Functions inherited from WoopWoop.Component
void Attach (Entity entity)
 Attaches the component to an entity.
 
virtual void Awake ()
 Awake is called when the component is initialized, regardless of whether or not the script is enabled.
 
virtual void Start ()
 Called when the component is started if it's enabled.
 
virtual void OnEndOfFrame ()
 Called on the end of every frame.
 
virtual void Stop ()
 Called when the component is removed.
 
virtual void OnDrawGizmo ()
 Tells the renderer how to draw the object's editor gizmos.
 

Public Attributes

string text = ""
 The text to be rendered.
 
int fontSize = 15
 The font size of the text.
 
Font font
 The font used for rendering the text.
 
float spacing = 1
 The spacing between characters.
 
- Public Attributes inherited from WoopWoop.Renderer
Color Color = Raylib.BLACK
 The color of the renderer.
 

Additional Inherited Members

- Static Protected Member Functions inherited from WoopWoop.Renderer
static Vector2 GetOriginalPositionOfTransform (Transform transform, Pivot pivot)
 Gets the original position of the transform based on the pivot.
 
- Properties inherited from WoopWoop.Renderer
byte Layer [get, set]
 The rendering layer of the renderer.
 
- Properties inherited from WoopWoop.Component
Entity entity [get, private set]
 The entity to which this component is attached.
 
Transform transform [get]
 The transform of the entity to which this component is attached.
 
bool Enabled = true [get, set]
 Determines whether the component is enabled.
 

Detailed Description

Represents a text renderer UI element.

Member Function Documentation

◆ Update()

override void WoopWoop.UI.TextRenderer.Update ( float deltaTime)
virtual

Updates the text renderer.

Parameters
deltaTimeThe time since the last frame.

Reimplemented from WoopWoop.Component.

Member Data Documentation

◆ font

Font WoopWoop.UI.TextRenderer.font

The font used for rendering the text.

◆ fontSize

int WoopWoop.UI.TextRenderer.fontSize = 15

The font size of the text.

◆ spacing

float WoopWoop.UI.TextRenderer.spacing = 1

The spacing between characters.

◆ text

string WoopWoop.UI.TextRenderer.text = ""

The text to be rendered.


The documentation for this class was generated from the following file: