Error at UCLASS() after including a H file

Hello, guy, I’ve just download UE4 and start playing with it, so yeh… I’m a noob for the moment. But I have an interesting problem. I’ve made a class Actor and in .h file, I’ve just added this part part of code:

UPROPERTY(EditAnywhere)
	UShapeComponent* RootBox;

UPROPERTY(EditAnywhere)
	float speed = 10.0f;

And now… from some reason after I’ve include this file I’ve receive a bunch of error at UCLASS() and GENERATED_BODY()

`#include "Components/ShapeComponent.h"`

Do you have any idea why I have this problem and how exactly I can fix it?

Here is the error message:

216199-err.png

You should include “xx.generated.h” at the very last.

Doesn’t matter the position of “xx.generated,h” because I receive the same error

Try place BulletController.generated.h as last include
And generate project files after.

You should always place .generated.h as last include. It’s required rule for Unreal Header Tool.

Besides. The VS highlighting not friendly with this macros. It’s not an error. Generated files just not actual for this moment.