Navigation
API > API/Plugins > API/Plugins/InteractableInterface
Gameplay Ability Task that will query all available interaction targets at a given interval around it's owning ability actor.
This task will gather nearby interactive targets and make them available to you via blueprint/C++ with the OnAvailableInteractionTargetsChanged delegate
| Name | UAbilityTask_GrantNearbyInteractionData |
| Type | class |
| Header File | /Engine/Plugins/Experimental/InteractionInterface/Source/InteractableInterface/Public/InteractionTask_WaitForTargets.h |
| Include Path | #include "InteractionTask_WaitForTargets.h" |
Syntax
UCLASS ()
class UAbilityTask_GrantNearbyInteractionData : public UAbilityTask
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UGameplayTask → UAbilityTask → UAbilityTask_GrantNearbyInteractionData
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OnAvailableInteractionTargetsChanged | FAvailableInteractionTargetsChanged | Delegate fired when the available interaction targets near the owner of this ability task have changed | InteractionTask_WaitForTargets.h |
|
Functions
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void QueryNearbyInteractables() |
Runs a query to gather the nearby interactable objects to this ability's owner. | InteractionTask_WaitForTargets.h |
Overridden from UGameplayTask
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Activate() |
InteractionTask_WaitForTargets.h | ||
virtual void OnDestroy
(
bool AbilityEnded |
InteractionTask_WaitForTargets.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UAbilityTask_GrantNearbyInteractionData * GrantAbilitiesForNearbyInteractionData
(
UGameplayAbility* OwningAbility, |
Wait until an overlap occurs. | InteractionTask_WaitForTargets.h |
|