During completion of tutorial programming lesson “3. Place A Camera Director In The World”, the latest part of it (“On Your Own!”) I tried to create the struct inside of my CameraDirector.h (as I understood, I must create structs in header files - is it right?):
USTRUCT()
struct FCameraData {
GENERATED_USTRUCT_BODY()
UPROPERTY(EditAnywhere)
AActor* camera;
UPROPERTY(EditAnywhere)
float timeBwtweenCameraChanges;
};
After trying to compile this I’ve got a lot of errors in myprojectname.generated.cpp:
http://pix.academ.org/img/2015/06/22/a13982c9564a51c80f9305810ec1e8eb.png
What can be the origin of this errors? Where I must put my structs to make it work correctly? I found a wiki page about structs, but it is totally missing the part about where the structs must be and can be declared.