Component reference
Interaction components

Input component

4min

Description

The Input component listens for user input events and forwards them to entities with InputSink components, such as the Interactable component. It controls how entities receive input within a defined proximity.

Document image



Properties

Property

Description

Proximity Focus Distance

Sets the distance at which the entity detects user input.

Sink Targets

Lists the entities that receive input events:

  • Self
  • [Scene]: All entities in the scene.
  • Specific entities, selectable from a list.

Add Sink Target

Allows to configure more Sink Targets.

Remove Target

Removes entities from the Sink Targets list.

Usage notes

  • Set the Proximity Focus Distance to define how close users must be to interact.

Important details

  • Component dependencies: Works closely with the Interactable component and other interactive components.
  • Input conflicts: Be mindful of overlapping input definitions that may cause conflicts or unintended behaviors.