At some point (already at two points, in my case) you start to realize you want to create UPROPERTY-s and other UHT-related stuff from macro/template/etc. The problem is UHT happens before C++ preprocessing, so you can’t use the latter. At the same time UHT itself does not seem to provide any functionality, that will allow you (for example) to write
UPROPERTY(EditAnywhere, BlueprintSetter = SetParamName, BlueprintGetter = GetParamName) int ParamName; UFUNCTION(BlueprintSetter) void SetParamName(int In); UFUNCTION(BlueprintGetter) int GetParamName();
(that’s just a basic example of the idea)
This question comes up again and again, I can easilly google
and the like.
Any solutions are out there, or do I have to write my own WhellInventerHeaderMegatool and integrate it into the build process. I want to make the computer do the boring copy-paste stuff, really.
(And why, oh why C++ preprocessing executed after UHT, not before, hm…?)