Text Component

he TextComponent facilitates the integration of 3D text elements into a scene.

Description

The TextComponent facilitates the integration of 3D text elements into a scene, utilizing the Label3D node.

Usage

  1. Attach the component to a game entity.
  2. Adjust the properties to customize the appearance of the text.

Dependencies

Depends on noto_sans_12_bold.tres for its font.

Properties

text

  • Type: STRING
  • Description: Represents the textual content of the 3D label.

size

  • Type: INT
  • Description: Represents the font size of the text.

color

  • Type: COLOR
  • Description: Represents the color of the text.

outline

  • Type: INT
  • Description: Represents the thickness of the text outline.

outline_color

  • Type: COLOR
  • Description: Represents the color of the text outline.