Icon

Summary

This behaviour will display an icon over the containing asset.

Parameters

Property

Type: Property Default: None

The ARDI ID of an associated property on the containing asset. This value will be shown on the Icon.

Offset

Type: Vector3 Default: 0,1,0

The positional offset to show the icon in relation to the asset containing the behaviour.

Size

Type: Vector3 Default: 1,1,1

The size or scale of the icon in X, Y and Z values. These can be set to enlarge, stretch or mirror the icon on a specific axis.

Color

Type: RGBA Color Default: 1,1,1,1

The Red, Green, Blue and Alpha values to apply a color to this Icon. Each value must be separated by a ',' and be any value between 0 and 1 including fractional values.

Examples

<icon offset="0,5,0" size="3,3,3" color="0,1,0,0.5"/>
The above code will attach an icon to this asset. The icon will be offset vertically by 5 units along the Y axis. The icon will have a color value of 0,1,0 making it green, with an alpha value of 0.5 making it partially transparent.