Fade

Summary

This function allows you to choose an asset in the virtual environment and have it fade out.

Parameters

Target

Type: Text Default: None

Specifies the name or ARDI ID of the asset you would like to fade. If using an asset ID, begin the target with the '#' character.

Amount

Type: Float Default: 0.1

Specifies the alpha transparency value to fade the asset to. A value of 1.0 is completely opaque, whereas a value of 0.0 is completely invisible.

AndChildren

Type: Boolean Default: True

This parameter specifies whether or not to fade all child assets that are parented to the target asset.

See Also

Examples

<fade Target="SomeObject" />
This code will find the asset named SomeObject and apply a fading effect to it.
<fade Target="SomeObject" Amount="0.5" />
This code will find the asset named SomeObject and apply a fading effect to it with a value of 0.5 to make it partially transparent.
<fade Target="SomeObject" AndChildren="No" />
This code will find the asset named SomeObject and apply a fading effect to it. It will also only fade the chosen asset and not any of its children.