Is it possible to create a class where if i create a TArray of it can show its members like shown in the pic below?
I haven’t done any editor scripting so if I have to write editor script then I might give up and use existing features, but if its possible out of box I would like to know how this can be done.
Thanks in advance
If you want it similar to what’s done in the image, you can try the following:
//Struct
USTRUCT(BlueprintType)
struct FTestStruct
{
UPROPERTY(EditAnwhere, BlueprintReadWrite)
FName Test1;
UPROPERTY(EditAnwhere, BlueprintReadWrite)
FName Test2;
}
//... In your actor class or anywhere else
UPROPERTY(EditAnywhere, BlueprintReadWrite)
TArray<FTestStruct> TestArray;
It works!!! If anyone tried it and didn’t work, I had to restart editor for the fields to show up.
You are a hero. Thanks