yu_iw
(yu_iw)
April 7, 2025, 1:04pm
1
Is it not allowed to nest TArray with UPROPERTY like TArray<TArray>?
There’s no error with UPROPERTY() TArray on the left.
But with UPROPERTY() TArray<TArray>, an error occurs.
Is it not possible to have UPROPERTY in a nested state?
UPROPERTY()
TArray<TArray<int>> MasterDataGroupLabelMapArray;
MasterBaseRepository.h(116): Error : The type 'TArray<int32>' can not be used as a value in a TArray
zeaf
(Zeaf)
April 7, 2025, 1:40pm
2
it’s not possible, if you really need this functionality, wrap the inner array in a struct and make the outer array an array of that struct instead
yu_iw
(yu_iw)
April 8, 2025, 11:38pm
3
Thank you very much!
When nesting container classes like TArray and TMap, it is necessary to insert a struct in between…
It might be a bit difficult, but I’ll give it a try…