Struct in my header is undefined in my Cpp file

Your struct is nested within another class. Not sure if that’s intended.

If that IS intended, return value should be written as:



QuestParser::QuestElement QuestParser::getElementFromString(const FString element)


Keep in mind that USTRUCT/UCLASS do not support nested types.