# \#include

**URL:** https://forums.unrealengine.com/tag/include/1861.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Obtaining paths for includes and directives from the UBT ](https://forums.unrealengine.com/t/obtaining-paths-for-includes-and-directives-from-the-ubt/2708965)

<div class="topic-metadata">

**Author:** [@MM\_GabeSventek](https://forums.unrealengine.com/u/MM_GabeSventek)\
**Replies:** 0\
**Last updated:** [March 26, 2026, 12:04am UTC](https://forums.unrealengine.com/t/obtaining-paths-for-includes-and-directives-from-the-ubt/2708965 "2026-03-26T00:04:25Z")

</div>

Hello, we are working on a project where we need to obtain all of the includes and directives for the title. Is it possible to obtain the includes paths and preprocessor directives for each source file from UBT?

---

## [Empty Project can't #include "Components/InstancedSkinnedMeshComponent.h"](https://forums.unrealengine.com/t/empty-project-cant-include-components-instancedskinnedmeshcomponent-h/2687910)

<div class="topic-metadata">

**Author:** [@DoctorBrowne](https://forums.unrealengine.com/u/DoctorBrowne)\
**Replies:** 8\
**Last updated:** [February 8, 2026, 3:54pm UTC](https://forums.unrealengine.com/t/empty-project-cant-include-components-instancedskinnedmeshcomponent-h/2687910 "2026-02-08T15:54:54Z")

</div>

When I try to include “Components/InstancedSkinnedMeshComponent.h” I get the following error when building: InstancedSkinnedMeshComponent.h(296, 2): \[C3837\] attributes are not allowed in this context Empty default c+…

---

## [UE5.5 VScode/Cursor #include path issue](https://forums.unrealengine.com/t/ue5-5-vscode-cursor-include-path-issue/2285804)

<div class="topic-metadata">

**Author:** [@Vixtrium](https://forums.unrealengine.com/u/Vixtrium)\
**Replies:** 1\
**Last updated:** [March 8, 2025, 12:14am UTC](https://forums.unrealengine.com/t/ue5-5-vscode-cursor-include-path-issue/2285804 "2025-03-08T00:14:10Z")

</div>

include “CoreMinimal.h” gives me an “cannot open source file” "include errors detected, please update your include path. " Here is a snippet from my cpp json file that should cover all of the #includes in my project - b…

---

## [How to include and use UPlayMontageCallbackProxy::CreateProxyObjectForPlayMontage in C++?](https://forums.unrealengine.com/t/how-to-include-and-use-uplaymontagecallbackproxy-createproxyobjectforplaymontage-in-c/1353770)

<div class="topic-metadata">

**Author:** [@brain56](https://forums.unrealengine.com/u/brain56)\
**Replies:** 3\
**Last updated:** [January 15, 2025, 10:31am UTC](https://forums.unrealengine.com/t/how-to-include-and-use-uplaymontagecallbackproxy-createproxyobjectforplaymontage-in-c/1353770 "2025-01-15T10:31:05Z")

</div>

I want to play my UAnimMontage via C++, and in particular, want to make use of the conveniences of UPlayMontageCallbackProxy. Looks like in theory, I can use UPlayMontageCallbackProxy::CreateProxyObjectForPlayMontage, b…

---

## [How to include the header file from a plugin](https://forums.unrealengine.com/t/how-to-include-the-header-file-from-a-plugin/288341)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_2db7ca80](https://forums.unrealengine.com/u/anonymous_user_2db7ca80)\
**Replies:** 22\
**Last updated:** [September 30, 2024, 8:55am UTC](https://forums.unrealengine.com/t/how-to-include-the-header-file-from-a-plugin/288341 "2024-09-30T08:55:23Z")

</div>

I’m sure this has been asked before but I can’t seem to find a suitable answer. I’ve read this question: How to Include files from another module It suggests I haven’t added the dependency into the Build.cs. However, a…

---

## [How to include private header files of other Modules into my Module?](https://forums.unrealengine.com/t/how-to-include-private-header-files-of-other-modules-into-my-module/325438)

<div class="topic-metadata">

**Author:** [@Stane](https://forums.unrealengine.com/u/Stane)\
**Replies:** 9\
**Last updated:** [May 9, 2024, 10:13pm UTC](https://forums.unrealengine.com/t/how-to-include-private-header-files-of-other-modules-into-my-module/325438 "2024-05-09T22:13:44Z")

</div>

Hi, I try to create a Plugin with an editor module for a component Visualizer. I have trouble in understanding and setting up the MyToolEditor.Build.cs I want to extent an already existing Component Visualizer but thi…

---

## [How to include MetalResources.h from MetalRHI](https://forums.unrealengine.com/t/how-to-include-metalresources-h-from-metalrhi/1784631)

<div class="topic-metadata">

**Author:** [@IAmNoBody2we](https://forums.unrealengine.com/u/IAmNoBody2we)\
**Replies:** 4\
**Last updated:** [April 3, 2024, 2:51am UTC](https://forums.unrealengine.com/t/how-to-include-metalresources-h-from-metalrhi/1784631 "2024-04-03T02:51:35Z")

</div>

UE 5.3 XCode I want to include /Engine/Source/Runtime/Apple/MetalRHI/Public/MetalResources.h into my C++ based project. Hence I added MetalRHI in my Build.cs file as below. PrivateDependencyModuleNames.AddRange(new s…

---

## [AnimGraphNode includes and IK in C++](https://forums.unrealengine.com/t/animgraphnode-includes-and-ik-in-c/829089)

<div class="topic-metadata">

**Author:** [@QuickJABProductions](https://forums.unrealengine.com/u/QuickJABProductions)\
**Replies:** 0\
**Last updated:** [March 28, 2023, 1:23am UTC](https://forums.unrealengine.com/t/animgraphnode-includes-and-ik-in-c/829089 "2023-03-28T01:23:03Z")

</div>

For my dissertation I am creating an IK script in C++. I thought the best way to do this would be replacing the ControlRig used in “ABP\_Manny” in the 3rd person template with my custom script. To do this I have created …

---

## [Error when trying to include own C++ Class](https://forums.unrealengine.com/t/error-when-trying-to-include-own-c-class/767501)

<div class="topic-metadata">

**Author:** [@ullriche](https://forums.unrealengine.com/u/ullriche)\
**Replies:** 2\
**Last updated:** [February 10, 2023, 12:26pm UTC](https://forums.unrealengine.com/t/error-when-trying-to-include-own-c-class/767501 "2023-02-10T12:26:14Z")

</div>

Hey there, I’m working with CARLA, an open source Simulator for autonomous driving based on Unreal Engine 4. I’m not sure what exactly it is, but when I’m building it from source I get a Unreal Engine 4 Project With th…

---

## [cannot open header added with editor](https://forums.unrealengine.com/t/cannot-open-header-added-with-editor/477870)

<div class="topic-metadata">

**Author:** [@furyhunter222](https://forums.unrealengine.com/u/furyhunter222)\
**Replies:** 1\
**Last updated:** [July 18, 2022, 9:46pm UTC](https://forums.unrealengine.com/t/cannot-open-header-added-with-editor/477870 "2022-07-18T21:46:33Z")

</div>

hi I added Class ActorBase in new folder named Actors. After compile, error occurs and I can’t see new file in browser complie logs are below. CompilerResultsLog: Building 4 actions with 12 processes... CompilerResul…

---

## [Source can't see file](https://forums.unrealengine.com/t/source-cant-see-file/475829)

<div class="topic-metadata">

**Author:** [@DDemon](https://forums.unrealengine.com/u/DDemon)\
**Replies:** 7\
**Last updated:** [July 6, 2022, 11:02am UTC](https://forums.unrealengine.com/t/source-cant-see-file/475829 "2022-07-06T11:02:11Z")

</div>

I downloaded the source from git and went through all the steps to set it up but as I finished the build of my project it started to say that it couldn’t find some function. I tried to locate it and by the looks of it so…

---

## [UE\_LOG defined in module not recognized in other files](https://forums.unrealengine.com/t/ue_log-defined-in-module-not-recognized-in-other-files/415902)

<div class="topic-metadata">

**Author:** [@darkgaze](https://forums.unrealengine.com/u/darkgaze)\
**Replies:** 2\
**Last updated:** [November 18, 2021, 6:04pm UTC](https://forums.unrealengine.com/t/ue_log-defined-in-module-not-recognized-in-other-files/415902 "2021-11-18T18:04:55Z")

</div>

I declare in my module. h and .cpp a new log category. I use extern to let the compiler know it’s a global new log category. In my .h that extends IModuleInterface DECLARE\_LOG\_CATEGORY\_EXTERN(name…, … , … ) In my .cp…

---

## [Identifier DrawLine is undefined](https://forums.unrealengine.com/t/identifier-drawline-is-undefined/490103)

<div class="topic-metadata">

**Author:** [@jWolf19833](https://forums.unrealengine.com/u/jWolf19833)\
**Replies:** 7\
**Last updated:** [October 30, 2021, 11:42am UTC](https://forums.unrealengine.com/t/identifier-drawline-is-undefined/490103 "2021-10-30T11:42:09Z")

</div>

Hi, Could you include the full error and also show the code snippet to give more context to the issue?

---

## [Headers of the plugin can not be found](https://forums.unrealengine.com/t/headers-of-the-plugin-can-not-be-found/481778)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a38e9d69](https://forums.unrealengine.com/u/anonymous_user_a38e9d69)\
**Replies:** 0\
**Last updated:** [April 12, 2021, 11:39am UTC](https://forums.unrealengine.com/t/headers-of-the-plugin-can-not-be-found/481778 "2021-04-12T11:39:03Z")

</div>

Hello, I’m trying to import a plugin to my project, I include the headers of the CPP codes of the plugin in my script and call the functions, the IDE seems ok with the code as it doesn’t get confused and finds the inclu…

---

## [Native Linux Kdevelop Includes: Non-existing Folder Paths](https://forums.unrealengine.com/t/native-linux-kdevelop-includes-non-existing-folder-paths/477356)

<div class="topic-metadata">

**Author:** [@AlasdairCoille](https://forums.unrealengine.com/u/AlasdairCoille)\
**Replies:** 1\
**Last updated:** [January 22, 2021, 3:11pm UTC](https://forums.unrealengine.com/t/native-linux-kdevelop-includes-non-existing-folder-paths/477356 "2021-01-22T15:11:23Z")

</div>

Hello, I’ve working with a native linux setup of UE4 on Ubuntu 20.04.1 LTS, along with a standard installation of Kdevelop. After including the paths from within the Kdev Include file, I’ve been getting a lot of errors …

---

## [Generate VS Project Files does not include MaterialEditingLibrary.h directory](https://forums.unrealengine.com/t/generate-vs-project-files-does-not-include-materialeditinglibrary-h-directory/475810)

<div class="topic-metadata">

**Author:** [@efevi](https://forums.unrealengine.com/u/efevi)\
**Replies:** 1\
**Last updated:** [December 12, 2020, 8:08pm UTC](https://forums.unrealengine.com/t/generate-vs-project-files-does-not-include-materialeditinglibrary-h-directory/475810 "2020-12-12T20:08:01Z")

</div>

I am trying to develop a plugin. I need MaterialEditingLibrary.h directory to be in the inclusion folders of VS project. However it is not. I put it manually. Then the compiler wants MaterialEditingLibrary\_generated.h. …

---

## [\#include with quotes not work, with angle brackets yes, why ?](https://forums.unrealengine.com/t/include-with-quotes-not-work-with-angle-brackets-yes-why/475682)

<div class="topic-metadata">

**Author:** [@ViolenceJack77](https://forums.unrealengine.com/u/ViolenceJack77)\
**Replies:** 0\
**Last updated:** [December 9, 2020, 9:09pm UTC](https://forums.unrealengine.com/t/include-with-quotes-not-work-with-angle-brackets-yes-why/475682 "2020-12-09T21:09:49Z")

</div>

I’m try to learning watching some tutorials and in every place they use #include " … " even with #include “GameFramework/Actor.h” I could not get the autocomplete to work, it only work with #include why ? I’m using vs20…

---

## [\#Include files not showing in Visual Studio](https://forums.unrealengine.com/t/include-files-not-showing-in-visual-studio/473484)

<div class="topic-metadata">

**Author:** [@Shadow\_Nightmare](https://forums.unrealengine.com/u/Shadow_Nightmare)\
**Replies:** 4\
**Last updated:** [October 30, 2020, 6:29pm UTC](https://forums.unrealengine.com/t/include-files-not-showing-in-visual-studio/473484 "2020-10-30T18:29:49Z")

</div>

Hello, I’ve recently go back into using Unreal Engine and i am using version 25.4. When going to Include Header files in my CPP files, Visual Studio 2019 cannot seem to find them when using the syntax #include "FileName…

---

## [\#include "Main.h" doesn't work Unreal 4.22.3](https://forums.unrealengine.com/t/include-main-h-doesnt-work-unreal-4-22-3/468909)

<div class="topic-metadata">

**Author:** [@Tamarar357](https://forums.unrealengine.com/u/Tamarar357)\
**Replies:** 1\
**Last updated:** [August 8, 2020, 10:06pm UTC](https://forums.unrealengine.com/t/include-main-h-doesnt-work-unreal-4-22-3/468909 "2020-08-08T22:06:09Z")

</div>

On a tutorial it says to #include “Main.h”, but in the version of Unreal I am using (4.22.3) it DOES NOT have Main.h. Is there something else I should be using?

---

## [VS17 now requires full include path](https://forums.unrealengine.com/t/vs17-now-requires-full-include-path/465542)

<div class="topic-metadata">

**Author:** [@Evigmae](https://forums.unrealengine.com/u/Evigmae)\
**Replies:** 1\
**Last updated:** [July 7, 2020, 9:32am UTC](https://forums.unrealengine.com/t/vs17-now-requires-full-include-path/465542 "2020-07-07T09:32:17Z")

</div>

For some reason I can’t compile my game anymore because VS17 says it can’t find the headers. Even on a brand new project. When I create a new class from the UE4 C++ Wizard, the #include in the class .cpp looks as you w…

---

## [can't include header files](https://forums.unrealengine.com/t/cant-include-header-files/467183)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_eea9f310](https://forums.unrealengine.com/u/anonymous_user_eea9f310)\
**Replies:** 1\
**Last updated:** [June 24, 2020, 1:58pm UTC](https://forums.unrealengine.com/t/cant-include-header-files/467183 "2020-06-24T13:58:38Z")

</div>

for example i want to include PaperSpriteComponent and use it in my pawn based c++ class. When i properly include,compiler can’t find it. “#include Classes/PaperSpriteComponent.h” and compiler throws this error : C:\\U…

---

## [Issue with includes after migrating from 4.18 to 4.25](https://forums.unrealengine.com/t/issue-with-includes-after-migrating-from-4-18-to-4-25/466059)

<div class="topic-metadata">

**Author:** [@Visor90](https://forums.unrealengine.com/u/Visor90)\
**Replies:** 3\
**Last updated:** [May 31, 2020, 9:11pm UTC](https://forums.unrealengine.com/t/issue-with-includes-after-migrating-from-4-18-to-4-25/466059 "2020-05-31T21:11:18Z")

</div>

Say we have MyProject as project name. In 4.18 I’d do #include "Characters/BaseCharacter.h" where the implied path is something like C:/Unreal/MyProject\_418/Source/MyProject/Characters/BaseCharacter.h In 4.25, that n…

---

## [How do you properly include the Vehicle Movement Component header files?](https://forums.unrealengine.com/t/how-do-you-properly-include-the-vehicle-movement-component-header-files/399656)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d71a2fac1](https://forums.unrealengine.com/u/anonymous_user_d71a2fac1)\
**Replies:** 5\
**Last updated:** [October 22, 2019, 8:30am UTC](https://forums.unrealengine.com/t/how-do-you-properly-include-the-vehicle-movement-component-header-files/399656 "2019-10-22T08:30:25Z")

</div>

No, similar to OnlineSubsystem, inside the uproject file. { "FileVersion": 3, "EngineAssociation": "{DB5E8B1D-4AC2-1924-0896-B98FB229C3B5}", "Category": "", "Description": "", "Modules": \[ { "Name": "ProjectNa…

---

## [Plugins Competing for GameInstance](https://forums.unrealengine.com/t/plugins-competing-for-gameinstance/451206)

<div class="topic-metadata">

**Author:** [@Garazbolg](https://forums.unrealengine.com/u/Garazbolg)\
**Replies:** 6\
**Last updated:** [June 25, 2019, 7:53pm UTC](https://forums.unrealengine.com/t/plugins-competing-for-gameinstance/451206 "2019-06-25T19:53:22Z")

</div>

Hello everyone, firstly a little disclaimer : I am really new to UE. I’ve been working with Unity3D for a few years and I’ve worked in C++ in the past, but I’m just stumbling my way through UnrealEngine right now. The …

---

## [Packaging error: Cannot open include file: 'Kismet2/StructureEditorUtils.h'](https://forums.unrealengine.com/t/packaging-error-cannot-open-include-file-kismet2-structureeditorutils-h/426471)

<div class="topic-metadata">

**Author:** [@StarfireDev](https://forums.unrealengine.com/u/StarfireDev)\
**Replies:** 2\
**Last updated:** [April 23, 2019, 12:12pm UTC](https://forums.unrealengine.com/t/packaging-error-cannot-open-include-file-kismet2-structureeditorutils-h/426471 "2019-04-23T12:12:33Z")

</div>

The following error message is causing my packaging to fail. G:\\Epic Games\\UE\_4.19\\Engine\\Source\\Editor/DataTableEditor/Private/SRowEditor.h(10): fatal error C1083: Cannot open include file: ‘Kismet2/StructureEditorUtil…

---

## [Game compiles but can't find header when packaging](https://forums.unrealengine.com/t/game-compiles-but-cant-find-header-when-packaging/443072)

<div class="topic-metadata">

**Author:** [@uced](https://forums.unrealengine.com/u/uced)\
**Replies:** 1\
**Last updated:** [February 10, 2019, 7:38am UTC](https://forums.unrealengine.com/t/game-compiles-but-cant-find-header-when-packaging/443072 "2019-02-10T07:38:37Z")

</div>

Hello, My games compiles fine but when i try to package it i get this error: E:\\unrealNewYag\_421\\yag\\Source\\yag/lua/YagLua.h(8): fatal error C1083: Cannot open include file: 'game/YagGameState.h': No such file or direc…

---

## [How to force include an asset in package?](https://forums.unrealengine.com/t/how-to-force-include-an-asset-in-package/440869)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_089a4978](https://forums.unrealengine.com/u/anonymous_user_089a4978)\
**Replies:** 4\
**Last updated:** [January 10, 2019, 3:29pm UTC](https://forums.unrealengine.com/t/how-to-force-include-an-asset-in-package/440869 "2019-01-10T15:29:28Z")

</div>

I need to include an editor asset to workaround a bug. How can I force include an ASSET FILE from Engine directory, not ASSET FOLDER? Thank you very much to anyone will try to help, I am working on the bug for 5 days bu…

---

## [Class definition breaks after adding #include](https://forums.unrealengine.com/t/class-definition-breaks-after-adding-include/426916)

<div class="topic-metadata">

**Author:** [@Dexgecko](https://forums.unrealengine.com/u/Dexgecko)\
**Replies:** 2\
**Last updated:** [June 23, 2018, 8:29pm UTC](https://forums.unrealengine.com/t/class-definition-breaks-after-adding-include/426916 "2018-06-23T20:29:48Z")

</div>

I have the following header file which compiles with no errors: #include "CoreMinimal.h" #include "Components/ActorComponent.h" #include "Grabber.generated.h" UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableCompo…

---

## [How to load physx plugin](https://forums.unrealengine.com/t/how-to-load-physx-plugin/423950)

<div class="topic-metadata">

**Author:** [@Lunarix\_1](https://forums.unrealengine.com/u/Lunarix_1)\
**Replies:** 1\
**Last updated:** [April 30, 2018, 12:50pm UTC](https://forums.unrealengine.com/t/how-to-load-physx-plugin/423950 "2018-04-30T12:50:07Z")

</div>

Hi, I want to create a pawn which has references to the class WheeledVehicle. But the plugin with the path of the physx code does not seem to be included by default. How to include the whole plugin so I can use every …

---

## [Class declaration into a header?](https://forums.unrealengine.com/t/class-declaration-into-a-header/417175)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ad9223cf](https://forums.unrealengine.com/u/anonymous_user_ad9223cf)\
**Replies:** 2\
**Last updated:** [February 13, 2018, 1:20pm UTC](https://forums.unrealengine.com/t/class-declaration-into-a-header/417175 "2018-02-13T13:20:23Z")

</div>

Hello, I’ve seen the following code in a EnemyManager.h file: #include "CoreMinimal.h" #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "EnemyManager.generated.h" class ABaseEnemy; UCLASS() class CP…

[Next page](https://forums.unrealengine.com/tag/include/1861.md?match_all_tags=true&page=1&tags%5B%5D=include)
