user-magnifying-glassInteractor component

Functions

1. Activate/Deactivate

Works like any other component in Unreal Engine. If you deactivate the interactor, it will stop looking for interactables and not consume any more performance when it may not be required (like in a cutscene, scripted events, etc.)

2. On Found/Lost Interactable

Gets called when the player looks/looks away at an interactable, to get the same event in interactables use "On Begin Focus" and "On End Focus"

3. Begin/End Interact

Signals to the interactor component that the player wants to commit to an interaction. In setup we use an input action for this, but it could also be made to automatically interact with interactables.

Properties

The interactor comes with properties that allow for dynamic interaction. Here is a table with all properties you can modify:

Property
Description
Default Value

Interaction Check Distance

How far should we check for interactable objects (in unreal units)

1000

Interaction Check Rate

How much time (in seconds) between interaction checks

0.1

Interaction Sphere Radius

If greater than 0, use a sphere instead of a line trace, specifies the radius of the interaction sphere trace (in unreal units)

0

Last updated