class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResourceMeshPrimitiveMesh TextMesh
Generate an PrimitiveMesh from the text.

Generate an PrimitiveMesh from the text.

TextMesh can be generated only when using dynamic fonts with vector glyph contours. Bitmap fonts (including bitmap data in the TrueType/OpenType containers, like color emoji fonts) are not supported.

The UV layout is arranged in 4 horizontal strips, top to bottom: 40% of the height for the front face, 40% for the back face, 10% for the outer edges and 10% for the inner edges.

AutowrapMode autowrap_mode<>():AutowrapMode

If set to something other than TextServer.AUTOWRAP_OFF, the text gets wrapped inside the node's bounding rectangle. If you resize the node, it will change its height automatically to show all the text. To see how each mode behaves, see AutowrapMode.

float curve_step<>():float

Step (in pixels) used to approximate Bézier curves.

float depth<>():float

Depths of the mesh, if set to 0.0 only front surface, is generated, and UV layout is changed to use full texture for the front face only.

Font font<>():Font

Font configuration used to display text.

int font_size<>():int

Font size of the TextMesh's text.

HorizontalAlignment horizontal_alignment<>():HorizontalAlignment

Controls the text's horizontal alignment. Supports left, center, right, and fill, or justify. Set it to one of the HorizontalAlignment constants.

BitField JustificationFlag<>():BitField

Line fill alignment rules. For more info see JustificationFlag.

String language<>():String

Language code used for text shaping algorithms, if left empty current locale is used instead.

float line_spacing<>():float

Vertical space between lines in multiline TextMesh.

Vector2 offset<>():Vector2

The text drawing offset (in pixels).

float pixel_size<>():float

The size of one pixel's width on the text to scale it in 3D.

StructuredTextParser structured_text_bidi_override<>():StructuredTextParser

Set BiDi algorithm override for the structured text.

Array structured_text_bidi_override_options<>():Array

Set additional options for BiDi override.

String text<>():String

The text to generate mesh from.

Direction text_direction<>():Direction

Base text writing direction.

bool uppercase<>():bool

If true, all the text displays as UPPERCASE.

VerticalAlignment vertical_alignment<>():VerticalAlignment

Controls the text's vertical alignment. Supports top, center, bottom. Set it to one of the VerticalAlignment constants.

float width<>():float

Text width (in pixels), used for fill alignment.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...