This is an old revision of the document!
Table of Contents
Text
Summary
This behaviour will add a floating text box that is positioned in front of the object.
Parameters
Text
Type: Text Bindable Default: None
The text to be displayed on the label. This is usually bound to a property value.
Label
Type: Text Default: None
The name of the label.
Offset
Type: Vector3 Default: 0,1,0
This parameter specifies a positional offset to place the label from the indicated asset. Values are specified as X,Y,Z coordinates that shall be local to the containing asset.
Size
Type: Vector3 Default: 1,1,1
This parameter changes the size of the label. Values are specified as X,Y,Z coordinates that shall be local to the containing asset.
Color
Type: RGBA Color Default: 0,0,0,1
This parameter specifies the the color of the label. Values are designated as Red, Green, Blue and Alpha respectively, using normalized values from 0 to 1.
Examples
<DynamicText color="1,1,1,1" offset="2,0,-0.8" size="0.3,0.3,0.3" text="[Speed]"/>
Displays the speed property of the asset.
The label will be 1/3 of the size of the asset itself, with the label 2 units in front and 0.8 units down from the center. The text will be white.
Notes
The text boxes created by this effect do not spin with rotating assets. However, the text boxes may exhibit a small amount of pulsing movement (either side-to-side or forwards and backwards) when the are attached to parts of a model that spin.