Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

Link2D

  • Last UpdatedFeb 19, 2025
  • 3 minute read

The Link2D allows you to create an interactive text that can be used as a link and trigger a sequence of actions.

It basically extends the TaskViewer2D by providing the following functionalities:

  • Interaction though the support of the clicked event.

  • State-based font color. The text displays in different color depending on the interaction state.

Platform support

This element is fully supported on XR-Windows, XR-Portable Windows, XR-Portable iOS, XR-Portable Android, and XR-P WASM platforms.

XR-WIN

XR-P-WIN

XR-P-IOS

XR-P-AND

XR-P-WASM

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Code example

This is a code example for Link2D.

<Link2D name="Link2d_Node" templateInfo="Link2D|Link2d_Node" position="100 0" size="200 40" visible="true" text="This is a text" formatH="center" formatV="center" clickedColor="0.9411765 0 0" visitedColor="0.4392157 0.1882353 0.627451" />

Link2D fields

These are the parameters for the Link2D node. Only the node-specific fields are indicated, not fields obtained by inheritance.

Field inheritance: NodeBase > RectBase2D > Text2D > Link2D

Fields

Type

Use

Default value

Description

clickedColor

svec3

Optional

240, 0 ,0

When mouse is clicked on text of Link2d node, the text color changes to clickedColor.

disableColor

svec3

Optional

164, 164, 164

When enable is set to false, the text color is set to disableColor.

dynamicFontScaling

sbool

Optional

true

Improves the quality of text by applying Dynamic Font Scaling rendering.

enable

sbool

Optional

true

When this field is set to true, the text is clickable.

overColor

svec3

Optional

0 ,0, 255

When the mouse hovers over the text, the text color changes to overColor.

resetVisited

sevent

Optional

When the event is sent, text color changes to default color.

visitedColor

svec3

Optional

112, 48, 160

When the text is clicked and mouse is not over, the text color is changes to visitedColor.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in