[STRUCTS] How to fix warning "The identifier 'GENERATED_USTRUCT_BODY' was detected in a block being skipped. Was this intentional?"

L.F.A.
Mon, 23 Jan 2023 05:02:01 +0000
C++

Hi there,
I am trying to create a struct consisting of a few parameters. However, when compiling the solution, the mentioned warning occurs. Here is a snippet of the code. Any help is appreciated:

USTRUCT(BlueprintType)
struct FFoliageEffectData
{
GENERATED_USTRUCT_BODY()
public:

UPROPERTY(EditAnywhere)
uint8 bDisabled : 1;

// True to check foliage/ecosystem system for this mesh.  False to save frametime.
UPROPERTY(EditAnywhere)
uint8 bCheckFoliage : 1;

// True to check grass system for this mesh.  False to save frametime.
UPROPERTY(EditAnywhere)
uint8 bCheckGrass : 1;

UPROPERTY(EditAnywhere)
UStaticMesh* FoliageMesh = nullptr;

13 posts - 8 participants