Summary
If you define a UPROPERTY of type TArray<FDataTableRowHandle>, you cannot properly manage the array in the editor: no drag-to-reorder; no dropdown with “Insert”, “Delete”, and “Duplicate”.
What Type of Bug are you experiencing?
UI / Tools
Steps to Reproduce
- Create a new, Blank project
- Create a new file
MyDataAsset.hwith the code below - Launch into the Unreal Editor
- Create a new DataAsset of class MyDataAsset
- Attempt to modify the arrays
#pragma once
#include "Engine/DataAsset.h"
#include "MyDataAsset.generated.h"
UCLASS()
class MYPROJECT_API UMyDataAsset : public UPrimaryDataAsset
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
TArray<FDataTableRowHandle> RowHandles;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
TArray<int> MyInts;
};
Expected Result
Modifying a TArray of FDataTableRowHandle should have all the same functionality as modifying a TArray of anything else.
Observed Result
Cannot perform any of these actions.
Affects Versions
5.8
Platform(s)
Windows
