Hey all, I’m getting a weird set of errors whenever I try to use a UFUNCTION inside of a plugin.
The errors are:
2>ExampleStruct.h(19): error C2065: ‘P_FINISH’: undeclared identifier
2>ExampleStruct.h(19): error C2065: ‘P_NATIVE_BEGIN’: undeclared identifier
2>ExampleStruct.h(19): error C2065: ‘P_NATIVE_END’: undeclared identifier
2>ExampleStruct.h(19): error C2065: ‘P_FINISH’: undeclared identifier
2>ExampleStruct.h(19): error C2065: ‘P_NATIVE_BEGIN’: undeclared identifier
2>ExampleStruct.h(19): error C2065: ‘P_NATIVE_END’: undeclared identifier
#pragma once
#include <Object.h>
#include "ClassLibrary/ClassLibrary.h"
#include "ExampleStruct.generated.h"
USTRUCT(BlueprintType)
struct FStruct1Unreal
{
GENERATED_BODY()
UPROPERTY()
FString x;
};
UCLASS(Blueprintable)
class EXAMPLE_API UExample : public UObject
{
GENERATED_BODY()
public:
UExample(FObjectInitializer const & ObjectInitializer);
virtual ~UExample();
public:
UFUNCTION(BlueprintCallable, Category = "example")
void Start();
};