I created a new header file called “QuestionData.h”, added in to my project and put this code into it:
#pragma once
#include "QuestionData.generated.h"
USTRUCT()
struct QuestionData {
GENERATED_USTRUCT_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite)
TArray<FString> Tekst;
};
But Visual underlines #include, USTRUCT, GENERATED_USTRUCT_BODY(). Says that it cannot open QuestionData.generated.h, that identifier GENERATED_USTRUCT_BODY() is undefined and that USTRUCT is missing some explicit type (so ‘int’ was assumed). I think that I did everything right and this should work and when I open some Blueprint, create a variable there I should be able to choose the type of that variable to be my QuestionData structure (but I can’t do that, there’s no QuestionData structure in Blueprint). So what’s wrong? I work on 4.1.0 version of UE4.