Ok corrected like that:
#pragma once
#include "Engine/StaticMesh.h"
USTRUCT()
struct MYPROJECT_API FMyStruct
{
GENERATED_USTRUCT_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
UStaticMesh *Mesh1;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
UStaticMesh *Mesh2;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
UStaticMesh *Mesh3;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
float AFloat;
FMyStruct()
: AFloat(0.0f)
{
}
};
Should be like that. At some point my mind jumped to C# :). But I’m still receiving compile errors. If I create a class from the editor, it generates a .generated.h file. But since I create it from VS environment, there is no .generated.h file. Also in editor I cannot create a USTRUCT.