#ifdef and #ifndef have no affect when used in the header file of a class.
Ex:
#ifndef MYMACRO
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Test)
float ANumber;
#endif
ANumber variable does not show up in the editor when MYMACRO is not defined. Inverse also does not appear in editor (using #ifdef with macro defined)
#ifndef RANDO
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Test)
float ANumber;
#endif
Result:
ANumber does not appear in the details panel for the MyActorBP instance
Expected:
Since
Head over to the existing AnswerHub thread and let us know what's up.