Cine camera.generated is corrupted in engine code

Hi all,

I added

#include "Runtime/CinematicCamera/Public/CineCameraComponent.h

to my project to be able to FindComponentByClass(); for some of my actors, and the project won’t compile since that header file seems to have several errors.

How can I look for the CineCamComp in C++ if the include doesn’t work? Anyone have ideas?

Thanks!

Summary:

  • Add “CinematicCamera” in PublicDependencyModulesNames in the Build.cs file.

Second Opinion:

  • Add “CinematicCamera” in the list of dependencies in the .uproject file.

(from: Consistent issues opening CineCameraComponent.generated.h - C++ Programming - Unreal Engine Forums)

Four years later and this is still the only place I could find this documented.