Hello, I wanted to use datatable so I created UStruct and datatable. All of them is working well but there is just one issue. While using FindDatatableRow, I want to pass an enum to function as a string. What I mean, normally FindDatatableRow takes argument as an string to determine which row to find. Instead of writing a string, I want to pass an enum that stores some names matching the rows. Is it possible? My goal is creating basic Rock Paper Scissors game. Datatable will store all mesh for all character. I will edit its enum via editor and its automaticly change properties according to correspoding row.
table = data->FindRow<FRtable>(FName("abc"), FString("asd"));
ENUM()
enum choose{
rock
paper
scissors
};
USTRUCT()
struct FRtable : public FTableRowBase {
GENERATED_BODY(BlueprintType)
UPROPERTY(EditAnywhere)
UStaticMesh* rmesh; // it will be change according to chracter
UPROPERTY(EditAnywhere)
FName pointp;if my chracter is rock this will be scissors
UPROPERTY(EditAnywhere)
FName pointS; //if my chracter is rock this will be papaer
UPROPERTY(EditAnywhere)
FName pointEq; if my chracter is rock this will be rock
};```
I want to placed an enum to "abc"