Example
<a-entity n-text='text: Hello world!;'></a-entity>
Extends
Members
fontSize :int
The height of the letters. 10pt ~= 1m
- Default Value:
- 10
height :number
The height of the text area in meters. If the text is taller than this value, the overflow will be cut off.
- Default Value:
- 1
horizontalAlign :string
The horizontal anchor point for the text. Can be left
, middle
, or right
.
- Default Value:
- "middle"
text :string
The text to be drawn.
verticalAlign :string
The vertical anchor point for the text. Can be top
, middle
, or bottom
.
- Default Value:
- "middle"
width :number
The width of the text area in meters. If the text is wider than this value, the overflow will be wrapped to the next line.
- Default Value:
- 10