6#include "Components/ActorComponent.h"
8#include "InteractabilityComponent.generated.h"
12UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
13class CK_UE_API UInteractabilityComponent :
public UActorComponent
18 UInteractabilityComponent();
22 void UnregisterFromChannel();
25 bool IsInteractable() const;
27 FORCEINLINE
bool IsRegistered()
const
29 return ActiveChannel !=
nullptr;
34 return ActiveChannel.Get();
38 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category =
"Interactability")
39 bool bCanInteractByDefault = true;
41 UPROPERTY(EditAnywhere, Instanced, BlueprintReadOnly, Category = "Interactability")
Definition InteractionChannel.h:21
Definition InteractionRule.h:15