Is it possible to limit the UDataTable Property within an FDataTableRowHandle struct to a specific struct type?
The next example is not working for the FDataTableRowHandle. Is there a solution?
UPROPERTY(meta = (RequiredAssetDataTags = "RowStructure=S_StructName"))
FDataTableRowHandle DT = FDataTableRowHandle();
Jambax
(Jambax)
April 11, 2022, 10:13am
2
UPROPERTY(meta = (RowType="MyStruct"))
UDataTable* Table;
OR
UPROPERTY(meta = (RowType="MyStruct"))
FDataTableRowHandle RowHandle;
Jambax:
RowType
Thanks, this is very useful info. I think it is not yet in docs.unrealengine.
I’m going to test it asap.
Perfect, thanks again. Structs name in RowType is entered without the F prefix.
Can this information be added to: ?
Metadata keywords used when declaring UClasses, UFunctions, UProperties, UEnums, and UInterfaces to specify how they behave with various aspects of Unreal Engine and the editor
Jambax
(Jambax)
April 12, 2022, 11:01am
5
The vast majority of custom meta specifiers are not in that documentation page because it’s auto-generated from the global ones.
Items like “RowType” are part of special Detail Customisation classes that look for custom meta markup. Unfortuantely there’s no easy way to parse them all.
Ares9323
(Ares9323)
November 3, 2023, 4:42pm
6
In UE 5.2 this no longer works for UDataTable, in order to make it work you need to use this:
UPROPERTY(Meta=(RequiredAssetDataTags = "RowStructure=/Script/Aura.UIWidgetRow"))
TObjectPtr<UDataTable> MessageWidgetDataTable;
You can find the exact name here (picture below), it’s usually ModuleName.StructName (without the initial F)
Tuerer
(Tuerer)
December 17, 2023, 3:04pm
7
Funny thing, you can’t add spaces before and after =
RowStructure=/Script/ works.
RowStructure = /Script/ does not.
Thanks for letting us know I’m always formatting things with spaces, this is easy to break then.
Just wanted to add that in 5.3 this indeed works:
UPROPERTY(meta = (RowType="/Script/Aura.UiWidgetRow"))
FDataTableRowHandle MessageWidgetDataTable;
Ares9323
(Ares9323)
May 7, 2024, 12:48pm
10
Nice to know! I like this better than the previous just because it’s shorter!
May I ask where did you find this info?
Does this work only with FDataTableRowHandle or also with UDataTable ?
imtrobin2
(imtrobin2)
May 10, 2024, 4:31am
11
Fairly sure it does not work with datatable in 5.3
MaselinoM
(Maselino)
May 15, 2024, 12:31pm
12
I did not “find” this info, I just tried it out and am actively using it in my code
Quickly tested the same meta attribute with UDataTable, no success though.