← Type index

TextDataPayload

Object datagramWire order
0Textstring · variable
1UseRotationboolean · 1 byte
2BackgroundColorColor · variable
3LineGapHeightfloat · 4 bytes
4DepthTestboolean · 1 byte
5ShowBackfaceboolean · 1 byte
6ShowTextBackfaceboolean · 1 byte

Fields

7 top-level fields
  1. 0TextText (string) of the debug text shape.string
  2. 1UseRotationWhether to use specified rotation, otherwise faces camera.boolean
  3. 2BackgroundColoroptionalColor to draw background.Color
    1. 0Colorint32
  4. 3LineGapHeightLine gap height for multiline text rendering.float
  5. 4DepthTestWhether other objects block seeing the text (false=like nametags,true=like signs).boolean
  6. 5ShowBackfaceWhether the backface of the background should be rendered.boolean
  7. 6ShowTextBackfaceWhether the backface of the text should be rendered.boolean

Packet references

1 reference
  1. PrimitiveShapesPacket
    Array of primitive shapes (can be a mix of new, updated or removed) › PrimitiveShapeDataPayload › Extra Shape Data › TextDataPayload › TextDataPayload

Changelog

Stable releases

Changes between stable protocol releases.

Released
Protocol
2193

Changed 1

  • Added field LineGapHeight (type float).
  • Moved DepthTest from field 3 to 4.
  • Moved ShowBackface from field 4 to 5.
  • Moved ShowTextBackface from field 5 to 6.