Restricting UDataTable UPROPERTY selector in editor to data tables with specific row structs

UE5.1 and 5.2

Create a new Data Table, place the cursor over your struct to check which is the correct “RequiredAssetDataTags”.

Should be /Script/ProjectName.MyStruct (FMyStruct → MyStruct, without the F)

image

meta = (RequiredAssetDataTags = "RowStructure=/Script/VRPhysicsBrawl.PhysicalMaterialPhysicsDamageData")


In general:

For projects:

UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "MyCategory", meta = (RequiredAssetDataTags = "RowStructure=/Script/MyProject.MyStruct"))
		UDataTable* MyDataTable = nullptr;

For plugins:

UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "MyCategory", meta = (RequiredAssetDataTags = "RowStructure=/Script/MyPlugin.MyStruct"))
		UDataTable* MyDataTable = nullptr;

Thanks to Rominitch

18 Likes