Patches

Text Layer

Text Layer

A text layer. Define the size to wrap text. Change anchor to set text alignment.

Text Layer

  • Enable
  • Text
  • Font Name
  • Font Size
  • Color
  • Position
  • Anchor
  • Size
  • Opacity
  • Scale
  • Rotation
  • Pivot
  • Content Mode
  • Shadow Color
  • Shadow Opacity
  • Shadow Radius
  • Shadow Offset
  • Character Spacing
  • Line Height
  • Paragraph Spacing

Enable

A boolean that is true when the layer is displayed.

Text

A text string to display.

Font Name

The font family with which to render the text. By default, uses the font on the phone, tablet, or computer the prototype is running on.

Font Size

The size with which to render the text, in dp.

Color

The color of the layer.

Position

The position to display the layer. Use Point 3D to set Z position.

Anchor

The anchor point to position the layer relative to. Determines text alignment

See Coordinates for more information.

Size

The size of the layer. Any text overflowing the width will be wrapped to subsequent lines.

Opacity

The opacity of the layer.

Scale

The scale of the layer.

Rotation

The rotation of the layer. Use Point 3D to set X or Y rotations.

Pivot

The pivot to rotate and scale the layer about. See Coordinates for more information.

Content Mode
Shadow Color

The color of the shadow.

Shadow Opacity

The opacity of the shadow. By default, the opacity is 0, which disables the shadow.

Shadow Radius

The blur radius of the shadow.

Shadow Offset

The size of the shadow relative to the size of the layer.

Character Spacing

A number that represents the horizontal space between characters, in dp.

Line Height

A number that represents the distance between baselines, in dp.

Paragraph Spacing

A number that represents the vertical space between paragraphs, in dp.