Is it posible to use C++ USTRUCT in Data Table(Editor)

Hello i was wondering is there any way to use Ustruct that is in one of my classes as a structure for a data table. When i try to go back to editor create new data table - none of the USTRUCT I have created are exposed there to be used. Also The Usturct, I’m talking about uses also UENUM that are ( BlueprintType ), i guess i’ll probably have to do that something about them as well.
Anyway this is my struct:

USTRUCT( BlueprintType )
struct FESegmentSpawnInfo 
{
	GENERATED_USTRUCT_BODY()

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "TestStruct")
	ESegmentForm Form;

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "TestStruct")
	ESegmentPowerType PowerType;

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "TestStruct")
	ESegmentRotation InitialRotation;

	
};
2 Likes

Structs that are to be used with data tables must derive from FTableRowBase. If you do that, they should appear in the list.

4 Likes

Your struct need to be derrived from FTableRowBase in order to be made DataTable

Data types are limited, you might consider using numbers insted of enums

It kind of sound you making nested struct, i think it needs to be outside class in order to work

4 Likes

Thanks ill look those up

Thanks, ill check that too