Navigation
API > API/Plugins > API/Plugins/InteractableInterface
A target that can be interacted with by an interaction instigator.
Add this component to actors that you would like to be intractable.
| Name | UInteractionTargetComponent |
| Type | class |
| Header File | /Engine/Plugins/Experimental/InteractionInterface/Source/InteractableInterface/Public/InteractionTargetComponent.h |
| Include Path | #include "InteractionTargetComponent.h" |
Syntax
UCLASS (Blueprintable, ClassGroup=Gameplay, Meta=(BlueprintSpawnableComponent),
HideCategories=(Activation, AssetUserData))
class UInteractionTargetComponent :
public UBoxComponent ,
public IInteractionTarget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → UPrimitiveComponent → UShapeComponent → UBoxComponent → UInteractionTargetComponent
Implements Interfaces
- IAsyncPhysicsStateProcessor
- IInterface_AssetUserData
- IInterface_AsyncCompilation
- INavRelevantInterface
- IPhysicsComponent
- IInteractionTarget
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UInteractionTargetComponent
(
const FObjectInitializer& ObjectInitializer |
InteractionTargetComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OnBeginInteractionCallback | FBeginInteractionCallback | A callback for when this target begins interaction. | InteractionTargetComponent.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BP_AppendTargetConfiguration
(
const FInteractionContext& Context, |
Determines what the configuration of this target is. | InteractionTargetComponent.h |
|
void BP_BeginInteraction
(
const FInteractionContext& Context |
Called when this target is interacted with. | InteractionTargetComponent.h |
|
Protected
Overridden from IInteractionTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AppendTargetConfiguration
(
const FInteractionContext& Context, |
Determines what the configuration of this target is. | InteractionTargetComponent.h | |
virtual void BeginInteraction
(
const FInteractionContext& Context |
Called when this target is interacted with. | InteractionTargetComponent.h |