Know limitation of UnrealHEaderTool. Everything inside of any #ifdef except WITH_EDITOR and WITH_EDITORONLY_DATA will be ignored by UHT.
#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 Questions & Answers thread and let us know what's up.
| 0 |
| Component | UE - Foundation - Core |
|---|---|
| Affects Versions | 4.11 |
| Target Fix | 4.11 |
| Created | Mar 17, 2016 |
|---|---|
| Resolved | Mar 18, 2016 |
| Updated | Feb 5, 2017 |