Some headers not found while overriding a class

Hi, I’m doing a plugin to override UGameViewportClient :: Draw ,
but the following headers are not found:

  • EnginePrivate.h
  • IHeadMountedDisplay.h
  • UserWidget.h
  • IMovieSceneCapture.h
  • MovieSceneCaptureSettings.h

Can someone tell me why? Thanks.

You probably need to include the relevant modules in your build.cs file. Here are the dependencies for our for example:



        PublicDependencyModuleNames.AddRange(new string] { "Core", "CoreUObject", "Engine", "InputCore", "OnlineSubSystem", "OnlineSubsystemUtils" });
        PrivateDependencyModuleNames.AddRange(new string] { "Slate", "SlateCore", "UMG", "GoogleAnalytics" });


Thanks, this solved the issue.