Error when opening copy of 5.0 to 5.1 project.

Your 2 header files confuse me. Besides what I posted earlier your includes don’t make sense. Either you are including OcclusionAwarePlayerController.generated.h in the wrong header, or you are trying to include OcclusionAwarePlayerController.h in itself (OcclusionAwarePlayerController.h) which are both very wrong.