# \#header

**URL:** https://forums.unrealengine.com/tag/header/1158.md

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

---

## [How can I make my graph not compile if a custom function's input is not set?](https://forums.unrealengine.com/t/how-can-i-make-my-graph-not-compile-if-a-custom-functions-input-is-not-set/2723831)

<div class="topic-metadata">

**Author:** [@OrangeAedan](https://forums.unrealengine.com/u/OrangeAedan)\
**Replies:** 2\
**Last updated:** [May 22, 2026, 6:31pm UTC](https://forums.unrealengine.com/t/how-can-i-make-my-graph-not-compile-if-a-custom-functions-input-is-not-set/2723831 "2026-05-22T18:31:47Z")

</div>

Hello everyone. I am making a custom function that sets up a custom component I made. Here is my function btw: UFUNCTION(BlueprintCallable, Category = "Vehicle|Engine", meta = ( ToolTip = "Setup the EngineAudioManager.\\…

---

## [Cannot open source file "generated.h"](https://forums.unrealengine.com/t/cannot-open-source-file-generated-h/447777)

<div class="topic-metadata">

**Author:** [@Bazzy2000](https://forums.unrealengine.com/u/Bazzy2000)\
**Replies:** 15\
**Last updated:** [September 6, 2025, 1:31pm UTC](https://forums.unrealengine.com/t/cannot-open-source-file-generated-h/447777 "2025-09-06T13:31:27Z")

</div>

I can’t include X.generated.h header file in my project. For some reason when I try to include the header file I get "Cannot open source file “X\_generated.h”. I’ve tired to generate Visual Studio project files, but didn’…

---

## [C++ Enum error in one header file](https://forums.unrealengine.com/t/c-enum-error-in-one-header-file/2501323)

<div class="topic-metadata">

**Author:** [@amin.khormaei](https://forums.unrealengine.com/u/amin.khormaei)\
**Replies:** 1\
**Last updated:** [May 10, 2025, 8:59pm UTC](https://forums.unrealengine.com/t/c-enum-error-in-one-header-file/2501323 "2025-05-10T20:59:15Z")

</div>

If I want to create an enum for changing difficulty in a header file, It does no recognize the code and I get an error because of \*.generated.h Even if I generate the Unreal C++ project again, I still get the same error…

---

## [Cannot open source file name.generated.hc](https://forums.unrealengine.com/t/cannot-open-source-file-name-generated-hc/413312)

<div class="topic-metadata">

**Author:** [@MrZelektronz](https://forums.unrealengine.com/u/MrZelektronz)\
**Replies:** 24\
**Last updated:** [April 2, 2025, 6:40am UTC](https://forums.unrealengine.com/t/cannot-open-source-file-name-generated-hc/413312 "2025-04-02T06:40:51Z")

</div>

Hey guys, I have a problem with my UE4 project, every time I want to compile I get an error which says that the generated.h class of every class of mine cannot be opened. And yes I tried this: Rightclick on .uproject and…

---

## [Declare delegate in one header file and use it in other headers](https://forums.unrealengine.com/t/declare-delegate-in-one-header-file-and-use-it-in-other-headers/483914)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_da48ad62](https://forums.unrealengine.com/u/anonymous_user_da48ad62)\
**Replies:** 3\
**Last updated:** [October 22, 2024, 9:38pm UTC](https://forums.unrealengine.com/t/declare-delegate-in-one-header-file-and-use-it-in-other-headers/483914 "2024-10-22T21:38:24Z")

</div>

Hello, I have a very simple query to which I was not able to find an answer from a quick google search. Maybe because its too obvious or its a silly question. Lets say I have a two classes A and B having their own head…

---

## [Cannot include ImageCore file or directory not found](https://forums.unrealengine.com/t/cannot-include-imagecore-file-or-directory-not-found/2008149)

<div class="topic-metadata">

**Author:** [@LombaxHope](https://forums.unrealengine.com/u/LombaxHope)\
**Replies:** 1\
**Last updated:** [September 6, 2024, 7:39pm UTC](https://forums.unrealengine.com/t/cannot-include-imagecore-file-or-directory-not-found/2008149 "2024-09-06T19:39:49Z")

</div>

I was trying to procedurally generate a texture on Unreal Engine. After some alterations to my project, I opted to change to a float texture with 32 bits per channel. Having noticed I could use ImageCore to help me with …

---

## [Optionally include header of plugin, and use the classes](https://forums.unrealengine.com/t/optionally-include-header-of-plugin-and-use-the-classes/470760)

<div class="topic-metadata">

**Author:** [@jojothebandit](https://forums.unrealengine.com/u/jojothebandit)\
**Replies:** 2\
**Last updated:** [May 30, 2024, 11:00am UTC](https://forums.unrealengine.com/t/optionally-include-header-of-plugin-and-use-the-classes/470760 "2024-05-30T11:00:47Z")

</div>

How would one include a header and class from another plugin that can potentially be there, meaning “do one thing if the user has the other plugin, and another if user has not installed the other plugin”. Basically, I a…

---

## [\[Bug report, UE5.2.1, UnrealHeaderTool\] UHT errors on VS output log.](https://forums.unrealengine.com/t/bug-report-ue5-2-1-unrealheadertool-uht-errors-on-vs-output-log/1843741)

<div class="topic-metadata">

**Author:** [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Replies:** 0\
**Last updated:** [May 6, 2024, 11:37pm UTC](https://forums.unrealengine.com/t/bug-report-ue5-2-1-unrealheadertool-uht-errors-on-vs-output-log/1843741 "2024-05-06T23:37:47Z")

</div>

VS output log (integration logging) is filling up with errors at random times from UnrealHeaderTool lately (UE5.2.1, never did this before). What is this a symptom of? I did not have this issue before on UE5.2.1 and wond…

---

## [VS2022 can't find header files when I was trying to create a new module](https://forums.unrealengine.com/t/vs2022-cant-find-header-files-when-i-was-trying-to-create-a-new-module/1568040)

<div class="topic-metadata">

**Author:** [@11712138](https://forums.unrealengine.com/u/11712138)\
**Replies:** 1\
**Last updated:** [December 29, 2023, 12:18am UTC](https://forums.unrealengine.com/t/vs2022-cant-find-header-files-when-i-was-trying-to-create-a-new-module/1568040 "2023-12-29T00:18:28Z")

</div>

When I following the video https://www.youtube.com/watch?v=53W2Kacw6TE&list=PL-m4pn2uJvXHL5rxdudkhqrSRM5gN43YN&index=10, I’m trying to create a module by using my own component. I create the .ccp and .h file for the modu…

---

## [Resolving Circular Dependency](https://forums.unrealengine.com/t/resolving-circular-dependency/296366)

<div class="topic-metadata">

**Author:** [@Janyx](https://forums.unrealengine.com/u/Janyx)\
**Replies:** 7\
**Last updated:** [October 15, 2023, 9:11pm UTC](https://forums.unrealengine.com/t/resolving-circular-dependency/296366 "2023-10-15T21:11:45Z")

</div>

Can anyone help me understand how this works? I am trying to implement the LastTakeHitInfo feature in my game. I was looking at the ShooterGame example to see how they did it. I am running into a circular dependency i…

---

## [Noob c++ question](https://forums.unrealengine.com/t/noob-c-question/1277980)

<div class="topic-metadata">

**Author:** [@Antokog](https://forums.unrealengine.com/u/Antokog)\
**Replies:** 7\
**Last updated:** [August 30, 2023, 10:17pm UTC](https://forums.unrealengine.com/t/noob-c-question/1277980 "2023-08-30T22:17:57Z")

</div>

Hello, I’m not quite familiar with C++. I’m trying to implement basic structures for my strategy game and I’m getting this error. The command ““C:\\Program Files\\Epic Games\\UE\_5.2\\Engine\\Build\\BatchFiles\\Build.bat” … -W…

---

## [Can I use an If statement inside the header file?](https://forums.unrealengine.com/t/can-i-use-an-if-statement-inside-the-header-file/491329)

<div class="topic-metadata">

**Author:** [@tXxy](https://forums.unrealengine.com/u/tXxy)\
**Replies:** 2\
**Last updated:** [November 26, 2021, 4:11pm UTC](https://forums.unrealengine.com/t/can-i-use-an-if-statement-inside-the-header-file/491329 "2021-11-26T16:11:47Z")

</div>

Hello, I am trying to make my variables public so I can use them in the details panel. I would like to create a few of them but hide them after a check. UPROPERTY(EditAnywhere) bool ShowVariables; if (ShowVariables)…

---

## [Video playing problem](https://forums.unrealengine.com/t/video-playing-problem/490577)

<div class="topic-metadata">

**Author:** [@jessica4353](https://forums.unrealengine.com/u/jessica4353)\
**Replies:** 0\
**Last updated:** [November 3, 2021, 10:33pm UTC](https://forums.unrealengine.com/t/video-playing-problem/490577 "2021-11-03T22:33:52Z")

</div>

Hi, I have a question that I made website on Wordpress and added an animation video on its header, but when I publish the changes the video didn’t play. I have tried it many times but facing the same problem. Can anyone…

---

## [GENERATED\_BODY() - This declaration has no storage class or type specifier](https://forums.unrealengine.com/t/generated-body-this-declaration-has-no-storage-class-or-type-specifier/488553)

<div class="topic-metadata">

**Author:** [@UTom](https://forums.unrealengine.com/u/UTom)\
**Replies:** 2\
**Last updated:** [September 13, 2021, 8:13am UTC](https://forums.unrealengine.com/t/generated-body-this-declaration-has-no-storage-class-or-type-specifier/488553 "2021-09-13T08:13:58Z")

</div>

Hello everyone, I’m a very beginner with the UE4 and currently I’m not coming over the error mentioned above. I don’t think Intellisense is responsible for this, because it is disabled in the experimental section. Also …

---

## [Engine source file NavArea.h error when building project](https://forums.unrealengine.com/t/engine-source-file-navarea-h-error-when-building-project/488143)

<div class="topic-metadata">

**Author:** [@Minimantis007](https://forums.unrealengine.com/u/Minimantis007)\
**Replies:** 0\
**Last updated:** [August 29, 2021, 12:36am UTC](https://forums.unrealengine.com/t/engine-source-file-navarea-h-error-when-building-project/488143 "2021-08-29T00:36:31Z")

</div>

When I try and package the game it gives me this error - UE\_4.25\\Engine\\Source\\Runtime\\NavigationSystem\\Public\\NavAreas/NavArea.h(10): fatal error C1083: Cannot open include file: ‘NavArea.generated.h’: No such file or d…

---

## [Why can't Visual Studio locate steam\_api.h?](https://forums.unrealengine.com/t/why-cant-visual-studio-locate-steam_api-h/487091)

<div class="topic-metadata">

**Author:** [@TheImmortalDev](https://forums.unrealengine.com/u/TheImmortalDev)\
**Replies:** 0\
**Last updated:** [August 6, 2021, 1:25am UTC](https://forums.unrealengine.com/t/why-cant-visual-studio-locate-steam_api-h/487091 "2021-08-06T01:25:46Z")

</div>

Software versions used: Visual Studio 2017 (issue also occurs in VS 2019), UE 4.26 (source engine downloaded from Git’s “Release” version). Windows SDK 10. Windows 10 x64 I’ve followed UE4’s Steamworks SDK setup and my …

---

## [Project no longer opens without crashing after adding UPhysicsHandleComponent logic](https://forums.unrealengine.com/t/project-no-longer-opens-without-crashing-after-adding-uphysicshandlecomponent-logic/484395)

<div class="topic-metadata">

**Author:** [@Orbiter7MD](https://forums.unrealengine.com/u/Orbiter7MD)\
**Replies:** 4\
**Last updated:** [June 7, 2021, 4:29pm UTC](https://forums.unrealengine.com/t/project-no-longer-opens-without-crashing-after-adding-uphysicshandlecomponent-logic/484395 "2021-06-07T16:29:37Z")

</div>

Today I started working towards a way to pick up objects, adding this functionality to existing project/solution. Initially the scripts compiled with no errors, then I hit play to test it out and it crashed with this err…

---

## [Error "No such file or directory on package" when assembling](https://forums.unrealengine.com/t/error-no-such-file-or-directory-on-package-when-assembling/469116)

<div class="topic-metadata">

**Author:** [@Shark\_vil](https://forums.unrealengine.com/u/Shark_vil)\
**Replies:** 1\
**Last updated:** [August 8, 2020, 10:24pm UTC](https://forums.unrealengine.com/t/error-no-such-file-or-directory-on-package-when-assembling/469116 "2020-08-08T22:24:39Z")

</div>

Error “No such file or directory on package” when assembling During assembly, it gives an error “No such file or directory on package”. At the same time, everything works in the editor, or if I specify the full path to …

---

## [\#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?

---

## [Build Server and Game project on Linux failed with pch](https://forums.unrealengine.com/t/build-server-and-game-project-on-linux-failed-with-pch/468253)

<div class="topic-metadata">

**Author:** [@Ludea35](https://forums.unrealengine.com/u/Ludea35)\
**Replies:** 0\
**Last updated:** [July 16, 2020, 3:24pm UTC](https://forums.unrealengine.com/t/build-server-and-game-project-on-linux-failed-with-pch/468253 "2020-07-16T15:24:22Z")

</div>

Hello, I try to build and package my game by comand on Linux. After cloning from source and run Setup.sh I do home/Users/UnrealEngine/EngineBuild/BatchFiles/Linux/RunMono.sh /home/Users/UnrealEngine/Engine/Binaries/Dot…

---

## [Building Project from Source: Compiler can't find headers, but Visual Studio can](https://forums.unrealengine.com/t/building-project-from-source-compiler-cant-find-headers-but-visual-studio-can/462083)

<div class="topic-metadata">

**Author:** [@UDKAP](https://forums.unrealengine.com/u/UDKAP)\
**Replies:** 1\
**Last updated:** [July 13, 2020, 9:13am UTC](https://forums.unrealengine.com/t/building-project-from-source-compiler-cant-find-headers-but-visual-studio-can/462083 "2020-07-13T09:13:03Z")

</div>

Hi, I am trying to rebuild a project from source. The project uses a handful of plugins, and was created on a Linux machine (I am trying to build it on a windows computer). When I try to rebuild the project, the compile…

---

## ["Generate Visual Studio Project Files" did not auto-generate generated.h header files](https://forums.unrealengine.com/t/generate-visual-studio-project-files-did-not-auto-generate-generated-h-header-files/312602)

<div class="topic-metadata">

**Author:** [@asperatology](https://forums.unrealengine.com/u/asperatology)\
**Replies:** 7\
**Last updated:** [May 6, 2020, 8:33am UTC](https://forums.unrealengine.com/t/generate-visual-studio-project-files-did-not-auto-generate-generated-h-header-files/312602 "2020-05-06T08:33:26Z")

</div>

Branch: Binary, from Launcher Version: 4.7.3 System Specs: Alienware 13, Nvidia Geforce 860M, Windows 8.1 While I was editing my code and building them, I got errors saying: Error 1 error code: OtherCompilationErro…

---

## [Disable Unreal Headers completely for one file](https://forums.unrealengine.com/t/disable-unreal-headers-completely-for-one-file/462646)

<div class="topic-metadata">

**Author:** [@Panakotta00](https://forums.unrealengine.com/u/Panakotta00)\
**Replies:** 0\
**Last updated:** [March 19, 2020, 8:12pm UTC](https://forums.unrealengine.com/t/disable-unreal-headers-completely-for-one-file/462646 "2020-03-19T20:12:36Z")

</div>

Hey guys, I wrote a small library using only Windows.h and stdlib in It’s own small project… now I want include all of it into my unreal project… I don’t care about linux or something else right now, so I ignore cross…

---

## [Blueprint nativization fails - relative path not found](https://forums.unrealengine.com/t/blueprint-nativization-fails-relative-path-not-found/458561)

<div class="topic-metadata">

**Author:** [@jawatr](https://forums.unrealengine.com/u/jawatr)\
**Replies:** 4\
**Last updated:** [November 19, 2019, 1:27pm UTC](https://forums.unrealengine.com/t/blueprint-nativization-fails-relative-path-not-found/458561 "2019-11-19T13:27:59Z")

</div>

Hi, I´m trying to nativize a pure blueprint project with 2 project plugins on Android ASTC (Oculus Quest). The project compiles and deploys fine when nativization is disabled, but when I enable it UnrealBuildTool fails …

---

## [Cannot include ShlObj\_core not package](https://forums.unrealengine.com/t/cannot-include-shlobj_core-not-package/457976)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ddc0261e](https://forums.unrealengine.com/u/anonymous_user_ddc0261e)\
**Replies:** 0\
**Last updated:** [November 3, 2019, 7:02pm UTC](https://forums.unrealengine.com/t/cannot-include-shlobj_core-not-package/457976 "2019-11-03T19:02:28Z")

</div>

Good afternoon, I got a problem trying to package a plugin with the header : “ShlObj\_core.h” who let me read on AppData folder on Windows. I got this problem first on a custom Blupint Plugin : UATHelper: Package Plug…

---

## [Unreal Header Tool runs on every compile?](https://forums.unrealengine.com/t/unreal-header-tool-runs-on-every-compile/455454)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a691f87e1](https://forums.unrealengine.com/u/anonymous_user_a691f87e1)\
**Replies:** 1\
**Last updated:** [September 21, 2019, 10:22pm UTC](https://forums.unrealengine.com/t/unreal-header-tool-runs-on-every-compile/455454 "2019-09-21T22:22:19Z")

</div>

Just starting off by saying I’m relatively new to the engine. I’m noticing that my compile times for small changes to a .cpp file are quite fast, but my actual total time for hot reloads is much slower. Most of that time…

---

## [HTTP Post HTML5 Build Auth Header truncation](https://forums.unrealengine.com/t/http-post-html5-build-auth-header-truncation/454801)

<div class="topic-metadata">

**Author:** [@jplanders](https://forums.unrealengine.com/u/jplanders)\
**Replies:** 0\
**Last updated:** [September 3, 2019, 2:20pm UTC](https://forums.unrealengine.com/t/http-post-html5-build-auth-header-truncation/454801 "2019-09-03T14:20:04Z")

</div>

Hello, I am making HTTP/S requests using a plugin called Low Entry which seems to work fine everywhere except for when I do an HTML5 build. The issue I run in to is that the authorization header gets truncated when a co…

---

## [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 recompile specific PCH.h file?](https://forums.unrealengine.com/t/how-to-recompile-specific-pch-h-file/437134)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e5f624c2](https://forums.unrealengine.com/u/anonymous_user_e5f624c2)\
**Replies:** 0\
**Last updated:** [November 6, 2018, 2:53pm UTC](https://forums.unrealengine.com/t/how-to-recompile-specific-pch-h-file/437134 "2018-11-06T14:53:55Z")

</div>

Hi all, I really often have an error like the one below: fatal error: file ‘/usr/include/linux/sysctl.h’ has been modified since the precompiled header ‘/path/to/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/Un…

---

## [Can not open header files](https://forums.unrealengine.com/t/can-not-open-header-files/432549)

<div class="topic-metadata">

**Author:** [@Lavios](https://forums.unrealengine.com/u/Lavios)\
**Replies:** 3\
**Last updated:** [September 5, 2018, 11:49am UTC](https://forums.unrealengine.com/t/can-not-open-header-files/432549 "2018-09-05T11:49:33Z")

</div>

Tell me why can this happen? Occurs in all C ++ files, in the plugin GameplayAbilities Version UE - 4.20.2 update: I forgot to say that there are no problems with the compilation. The problem is only with navigati…

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