-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the XInteractionDemo wiki! If the images are not displayed correctly, open them in a new tab.
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.
If you downloaded the plugin from another source, place it in the Plugins folder. The path will look like this: YourProject/Plugins/XInteraction
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.
-
Returns an array of results:
-
-
-
XInteractionLineComponent- Detects an interactable object along a line. Great for first-person games.
-
Returns one result:
-
-
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:

Add XInteractionSourceInterface:

You will have two functions in the interfaces section:

Open these functions and specify the location and rotation, in our example, I will specify the location and rotation from the camera:
- 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
You will see a list of functions like this:
Override these functions:
-
Create three InputActions and add them to the InputMappingContext
-
-
-
-
-
Add this code to your character
Let's test it! Everything should work!
-
Open the XInteraction plugin folder and copy the widget from there into your project:
-
-
-
Now you can open it, change the font, color, or completely customize it however you like! Use this widget as an example!
-
-
Use it in the Updated delegate
-
By default, XInteractionSphereComponent and XInteractionLineComponent are active after they are added, so you can disable AutoActivate and enable them manually.
-
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
XInteractionSphereComponent Settings