Skip to content
dexied edited this page Aug 22, 2026 · 6 revisions

Welcome to the XInteractionDemo wiki! If the images are not displayed correctly, open them in a new tab.



Installing the plugin

To start using the plugin, download it through FAB or add the plugin to the project folder.


Download the XInteraction plugin in FAB for your engine version, then open the project and enable it.

  • image
  • image

If you downloaded the plugin from another source, place it in the Plugins folder. The path will look like this: YourProject/Plugins/XInteraction



Using the plugin

Open your Character Blueprint and add one of the components:


  • XInteractionSphereComponent - Detects all interactable objects within a sphere within a certain radius. Automatically sorts them by distance and angle.
image
  • Returns an array of results:

  • image
  • image

  • XInteractionLineComponent - Detects an interactable object along a line. Great for first-person games.
image
  • Returns one result:

  • image
  • image


Interface XInteractionSourceInterface

This interface allows you to override location and rotation for XInteraction components. It needs to be added to the same location as your XInteraction components. In our example, I'll add it to the ThirdPersonCharacter blueprint.


Open Class Settings: image


Add XInteractionSourceInterface: image


You will have two functions in the interfaces section: image


Open these functions and specify the location and rotation, in our example, I will specify the location and rotation from the camera:

  • image
  • image


XInteractionTargetInterface interface

  • with it you can determine which interaction is currently active

For example, I created a Blueprint in which I added one cube and an XInteractionTargetInterface interface

  • image
  • image
  • image

You will see a list of functions like this:

image

Override these functions:

  • image
  • image
  • image
  • image


Example of creating and updating a widget for XInteractionSphereComponent

image

Example of creating a widget using XInteractionLineComponent

image

Interacting with an object

  • Create three InputActions and add them to the InputMappingContext

  • image
  • image
  • image
  • image
  • image

Add this code to your character

  • image
  • image
  • image

Let's test it! Everything should work!

image

Widget customization

  • Open the XInteraction plugin folder and copy the widget from there into your project:

  • image
  • image

  • Now you can open it, change the font, color, or completely customize it however you like! Use this widget as an example!

  • image

  • Use it in the Updated delegate

  • image

Activation and deactivation

By default, XInteractionSphereComponent and XInteractionLineComponent are active after they are added, so you can disable AutoActivate and enable them manually.

  • image
  • image
  • image


Additionally

  • Typically two components are not used at the same time, either XInteractionSphereComponent or XInteractionLineComponent

  • In multiplayer, components are typically enabled manually, only on the local client side. When interacting, they transmit XInteractionData via an RPC event to the server, and the server then performs additional checks to determine whether the player can interact or not.


XInteractionLineComponent Settings

image

XInteractionSphereComponent Settings

image