interface code:
includeemphasized text “CoreMinimal.h”
include “UObject/Interface.h”
include “TestInterface.generated.h”
// This class does not need to be modified.
UINTERFACE(MinimalAPI)
class UTestInterface : public UInterface
{
GENERATED_BODY()
};
/**
*
*/
class TEST_API ITestInterface
{
GENERATED_BODY()
// Add interface functions to this class. This is the class that will be inherited to implement this interface.
public:
UFUNCTION(BlueprintCallable, BlueprintNativeEvent)
void Interact(APawn* InstigatorPawn);
};
ITestInterface::Execute_Interact(xxx, xxx); statement compilation error Static class is not a member of ITestInterface (ue version4.27)