Component reference
Interaction components

Interactable component

5min

Description

The Interactable component enables entities to respond to user interactions such as proximity, hover, or clicks.

Document image



Properties

Property

Description

Label

Displays text to guide the user (e.g., "Hover over to start").

Activation Type

Specifies how to trigger interaction:

  • Proximity: Activates when the user enters a defined range.
  • Hover: Activates when the user's cursor hovers over the entity.

Click to Interact

Requires the user to click to complete the interaction.

Add Callback

Opens a menu to define actions triggered during interaction.

Add Callback options:

Property

Description

Target

Specifies the entity affected by the interaction:

  • Self: Affects the current entity.
  • Other entities in the scene, selectable from a list.

Callback ID

Defines the action performed:

  • setVisible
  • setInvisible
  • Disable Collision
  • Enable Collision
  • linkCallback

Usage notes

  • Callbacks can link the Interactable component to other components that define what happens upon interaction.

Important details

  • Component dependencies: The Interactable component is used in conjunction with the Input component to handle user input events.