#pragma once
#include "ItemActionsInterface.generated.h"
UINTERFACE(Blueprintable)
class UItemActionsInterface : public UInterface
{
GENERATED_UINTERFACE_BODY()
};
class IItemActionsInterface
{
GENERATED_IINTERFACE_BODY()
public:
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Pickup", meta = (DisplayName = "Pickup Item"))
bool PickupItem(class AItemActor* InItemActor);
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Match", meta = (DisplayName = "Match Item"))
bool MatchItem(int32 MatchType);
};
The solution is adding ‘BlueprintCallable’ property to the functions.