I am trying to create a simple class for working with a CSV file in the editor. I have tried 4.11.2 and 4.10.4 and both crash when compiling the class. This is code from a book I am using to get familiar with the way Unreal does C++.
All of the code looks fine from what I can tell from scouring the documentation to see if I was doing something wrong.
TestCustomData.h:
#pragma once
#include "TestCustomData.generated.h"
USTRUCT(BlueprintType)
struct FTestCustomData : public FTableRowBase {
GENERATED_USTRUCT_BODY()
UPROPERTY(BlueprintReadOnly, Category = "TestCustomData")
int32 SomeNumber;
UPROPERTY(BlueprintReadOnly, Category = "TestCustomData")
FString SomeString;
};
TestCustomData.cpp:
#include "RPG.h"
#include "TestCustomData.h"
When I go to compile this so I can import the CSV file the whole editor crashes and when I reload the project my newly created TestCustomData class is no longer present in the editor but the code is all still there in the project folders and such.
Is this a bug that has been there for numerous versions or am I doing something wrong?
If you need a reproduceable I can do that too.