Hello,
When trying to use namespaces and having multiple enums within one namespace an error shows up as
error : Missing ‘}’ in ‘Enum’
Here is the code in question,
UENUM(BlueprintType)
namespace EQuestSystem
{
enum QuestName
{
SubQuest UMETA(DisplayName = "An unusable quest. Make sure that the following enums match the ones you use in the spreadsheet!"),
};
enum CheckType
{
Solo UMETA(DisplayName = ""),
Group UMETA(DisplayName = "")
};
enum QuestStatus
{
Unstarted UMETA(DisplayName = "The quest has not been located."),
Available UMETA(DisplayName = "The quest has at least been located, or is active."),
Completed UMETA(DisplayName = "The quest has been completed.")
};
}
namespace FQuestSystem
{
USTRUCT(BlueprintType)
struct MUANDTHELITTLEREEF_API FBannerData
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bIsStarting;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
EQuestSystem::QuestName QuestName;
};
Not quite sure why that error occurs. If I only have one enum per namespace then no errors occur, but multiple is when the errors happen. I am pretty sure you can have multiple enums in a namespace in c++ unless Unreal has a different rule about it with the Unrea Build Tool Header.