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
Why does the REMOVE method of map container remove elements have memory leaks?
How does TextureRenderTarget2D get TArray<uint8> type data?
How do I set a material as a post-processing material?
UMG RichText not appear image when packaged
How to delete some elements correctly when deleting an array loop?
What is the difference between Camera and CineCamera?
What controls of umg have mouse wheel events in UE4.27?
How to implement springarm components to scale according to mouse position in spawn?
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 |