# Some headers not found while overriding a class

**URL:** <https://forums.unrealengine.com/t/some-headers-not-found-while-overriding-a-class/64080>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [May 17, 2016, 2:28pm UTC](https://forums.unrealengine.com/t/some-headers-not-found-while-overriding-a-class/64080 "2016-05-17T14:28:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jobim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jobim](https://forums.unrealengine.com/u/jobim)\
**Post date:** [May 17, 2016, 2:28pm UTC](https://forums.unrealengine.com/t/some-headers-not-found-while-overriding-a-class/64080/1 "2016-05-17T14:28:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [May 19, 2016, 8:41am UTC](https://forums.unrealengine.com/t/some-headers-not-found-while-overriding-a-class/64080/2 "2016-05-19T08:41:01Z")

</div>

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

```auto

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

```

---

<div class="post-metadata">

**Author:** ![jobim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jobim](https://forums.unrealengine.com/u/jobim)\
**Post date:** [May 19, 2016, 9:30am UTC](https://forums.unrealengine.com/t/some-headers-not-found-while-overriding-a-class/64080/3 "2016-05-19T09:30:09Z")

</div>

Thanks, this solved the issue.
