First Steps: Interact with a Nearby Object
Make a switch print a message when the player faces it and presses Interact. Start with the collision presets and generic assets and a character whose Ability System Component is initialized.
Make the switch
Create a Blueprint based on
NinjaInteractionActor_StaticMesh. Give it a visible mesh and set its Interaction Target Component to a copy ofSO_Interaction_Generic.In the Smart Object, give one slot an Execute Interaction configuration in its Gameplay Behavior definition. Choose
Interaction.Type.Interactas the Interaction Type Tag, add the same tag to the slot's Runtime Tags, set the display text to Use switch, chooseST_Interaction_Generic, and set Duration to zero.Add a box around the switch mesh. Enable Generate Overlap Events and use the InteractionTarget collision preset. On the target component, bind On Interaction Finished to print Switch used. Place the switch in the level.

Give the player a scan area and a focus area
Add an Interaction Manager Component to the player pawn. Add a sphere large enough to detect the switch from a few steps away. Set its Component Tags to include
Interaction.Component.InteractableScan.Add a smaller box in front of the pawn, within the sphere. Give it the component tag
Interaction.Component.InteractableFocus. Set both shapes to InteractionSource and enable Generate Overlap Events.Grant
InteractionAbility_FindInteractableActorandInteractionAbility_ExecuteInteractionthrough the pawn's usual ability setup. For this example, keep the find ability's default Find Closest Interaction Target task.Map a Boolean Enhanced Input action to a key. Give it a Pressed trigger. On Triggered, call Try Initialize Interaction With Current Target on the pawn's manager with
Interaction.Type.Interact.


Try It in Play
Approach the switch and face it. Press once and look for one Switch used message. Press again to confirm the slot was released. Turn away so the switch leaves the focus box and press again. If the first press did nothing, bind On Target Registered and On Focus Applied on the target component to separate print messages. A registration message alone means the scan reached the switch but selection still needs attention.
Next Steps
Time a search in the tree, confirm a switch with a held input, or collect a tagged object without focusing it.