Text
The Text Object allows the user to add text to their Project. It can be completely customized in the Attributes.

Attributes
The Object's Attributes can be used to fully customize the Object. Explained below, they are:
Transformation

The Transformation Attributes deal with placement, rotation, and size in XY space. More information can be found here.
Text

The Text Attributes offer the user options to customize the Text:
- Textis the text itself which will be displayed.
- Font familyoffers three different font types:- monospace,- sans-serif, and- serif. More fonts can be added by the user in Project Settings.
- Alignmentsets the alignment of the text. This is either left, right, or center.
- Transformcan easily change certain text aesthetics without requiring the user to change the- TextAttribute itself.- Capitalizemakes the first letter capital,- uppercasemakes all letters capital, and- lowercasemakes all letters lowercase.
- Font size (px)determines the size of the font in pixels.
- Line height (%)determines the placement of the text within the text box.
- Font colordecides the color of the text.
Code

The Code Attributes allow for more customizability. This can override any stylesheet provided in the Project Settings or a Scene2D.
To address these in the Logic, please refer to the Object 2D Nodes.
- Class namescontain the CSS class names of the Object.
- Stylesheetcontains the CSS stylesheet of the Object.
Tag

This Attribute manages the tags for the Text. See more on tags here.
Last updated
Was this helpful?