I want to simplify my work, so I define these macros
They can be complied properly ,but i can find the function in blueprint, it seems that the UFUNCTION not be properly expanded. I not dont what is the problem ?c++ ? UE4?
#define GENERATE_RAWGet(Type, ParaName) Type Get##ParaName() const {return ParaName;}
#define GENERATE_RAWSet(Type, ParaName)void Set##ParaName(const Type In##ParaName){ParaName = In##ParaName;}
#define _GENERATE_RAWGet(Type, ParaName)\
UFUNCTION(BlueprintCallable, Category = UserInterface)\
GENERATE_RAWGet(Type, ParaName)
#define _GENERATE_RAWSet(Type, ParaName)\
UFUNCTION(BlueprintCallable, Category = UserInterface)\
GENERATE_RAWSet(Type, ParaName)
#define GENERATE_RAWOP(Type, ParaName) _GENERATE_RAWGet(Type, ParaName) _GENERATE_RAWSet(Type, ParaName)