What’s New
Getting Started

Text Component

Last Updated: November 8, 20241 min read

Description

The Text Component is a simple yet powerful 2D element used to display text on the screen. It can show real-time information such as scores, level names, dialogue, or any other important in-game text. The text component supports various formatting options, allowing developers to create visually appealing and informative textual displays.

Usage

Text components are essential for showing static or dynamic information to players. They are commonly used for scores, item descriptions, instructions, or dialogue. Developers can update text content in real-time, making it ideal for responsive UI elements like counters or notifications.

Key Properties

  • Content: The text string displayed on the screen, which can be static or updated dynamically during gameplay.
  • Font: Specifies the typeface used for the text, allowing customization for readability and style.
  • Font Size: Controls the size of the text, ensuring it’s appropriately scaled for the intended context.
  • Color: Sets the color of the text, which can be adjusted for visibility or to match the game’s aesthetic.
  • Alignment: Defines the text alignment within its bounding box (e.g., left, center, or right).
  • Position: Determines where the text appears on the screen, allowing developers to create overlay text in HUDs or dialogues.

Feedback

Please be sure to submit issues or feature requests through the embedded feedback form. In the event it is a major issue please contact us directly through Discord.

Table of Contents