Hi everyone, I’m working on a UClass declaration who has groups of UProperties with the same but very long format. So I want to replace a group of UProperty with a macro like:
I don’t think that’s possible unfortunatelly, the UPROPERTY macro doesn’t actually do anything with the C++ code, it’s just an empty macro with a variable argument list. The Unreal Header Tool (UHT) parses the code before it is compiled and looks for the exact pattern of UPROPERTY(…), you can’t wrap it in another macro because the UHT won’t recognize it anymore. UHT could provide functionality to solve this issue, but I am not aware of any such feature.