# NiagaraDataInterfacePhysicsAsset.h and GroomComponent.h in Unreal 5.1 - header not found

**URL:** <https://forums.unrealengine.com/t/niagaradatainterfacephysicsasset-h-and-groomcomponent-h-in-unreal-5-1-header-not-found/718705>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question\
**Created:** [November 30, 2022, 4:05pm UTC](https://forums.unrealengine.com/t/niagaradatainterfacephysicsasset-h-and-groomcomponent-h-in-unreal-5-1-header-not-found/718705 "2022-11-30T16:05:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomaszKalisiak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TomaszKalisiak](https://forums.unrealengine.com/u/TomaszKalisiak)\
**Post date:** [November 30, 2022, 4:05pm UTC](https://forums.unrealengine.com/t/niagaradatainterfacephysicsasset-h-and-groomcomponent-h-in-unreal-5-1-header-not-found/718705/1 "2022-11-30T16:05:35Z")

</div>

According to Unreal Engine 5.1 release notes:

> Disabled dependency on the HairStrands plugin for Niagara Fluids. Old assets may now fail to run properly without manually enabling the HairStrands plugin for access to the NiagaraDataInterfacePhysicsAsset class.

I’m using the HairStrands plugin and after migrating to Unreal 5.1 from 5.0, my project fails to compile. I’m getting a message that the header `NiagaraDataInterfacePhysicsAsset.h`, included in the file `GroomComponent.h` in the HairStrands plugin, was not found.  
I could find that exact file in `Plugins/FX/Niagara/Source/Niagara/Classes`. What should I do to be able to run my project? Everything I’ve tried so far has failed and there is no info on the internet other than the release note. What does “Manually enabling the HairStrands plugin for access (…)” mean? What can I do?

---

<div class="post-metadata">

**Author:** ![stonekase](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stonekase](https://forums.unrealengine.com/u/stonekase)\
**Post date:** [December 3, 2022, 3:50am UTC](https://forums.unrealengine.com/t/niagaradatainterfacephysicsasset-h-and-groomcomponent-h-in-unreal-5-1-header-not-found/718705/2 "2022-12-03T03:50:46Z")

</div>

I am also experiencing this same problem.  
@TomaszKalisiak

add “Niagara” to your “PublicDependencyModuleNames” in your Projectname.Build.cs file

Example : PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”,“Niagara” });

---

<div class="post-metadata">

**Author:** ![TomaszKalisiak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TomaszKalisiak](https://forums.unrealengine.com/u/TomaszKalisiak)\
**Post date:** [December 8, 2022, 10:17am UTC](https://forums.unrealengine.com/t/niagaradatainterfacephysicsasset-h-and-groomcomponent-h-in-unreal-5-1-header-not-found/718705/3 "2022-12-08T10:17:31Z")

</div>

Thank you, it helped!

---

<div class="post-metadata">

**Author:** ![SicoSiber](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sicosiber/32/1183815_2.png) [@SicoSiber](https://forums.unrealengine.com/u/SicoSiber)\
**Post date:** [January 19, 2023, 3:53pm UTC](https://forums.unrealengine.com/t/niagaradatainterfacephysicsasset-h-and-groomcomponent-h-in-unreal-5-1-header-not-found/718705/4 "2023-01-19T15:53:54Z")

</div>

I’ve got the same problem, but with a plugin, any idea on how I would go about fixing it?

---

<div class="post-metadata">

**Author:** ![Mazzerisk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mazzerisk](https://forums.unrealengine.com/u/Mazzerisk)\
**Post date:** [February 4, 2023, 7:15pm UTC](https://forums.unrealengine.com/t/niagaradatainterfacephysicsasset-h-and-groomcomponent-h-in-unreal-5-1-header-not-found/718705/5 "2023-02-04T19:15:12Z")

</div>

Thank you so much!!!

---

<div class="post-metadata">

**Author:** ![Avalon\_ExE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Avalon\_ExE](https://forums.unrealengine.com/u/Avalon_ExE)\
**Post date:** [June 1, 2023, 7:52am UTC](https://forums.unrealengine.com/t/niagaradatainterfacephysicsasset-h-and-groomcomponent-h-in-unreal-5-1-header-not-found/718705/6 "2023-06-01T07:52:27Z")

</div>

Thank you so much !!! This problem waste lots of my time !

---

<div class="post-metadata">

**Author:** ![hackhmeh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hackhmeh](https://forums.unrealengine.com/u/hackhmeh)\
**Post date:** [June 17, 2023, 1:43pm UTC](https://forums.unrealengine.com/t/niagaradatainterfacephysicsasset-h-and-groomcomponent-h-in-unreal-5-1-header-not-found/718705/7 "2023-06-17T13:43:59Z")

</div>

Now getting this error?

Unreal Engine\UE\_5.2\Engine\Plugins\Runtime\HairStrands\Source\HairStrandsCore\Public\GroomComponent.h(24): error C2143: syntax error: missing ‘;’ before ‘’

---

<div class="post-metadata">

**Author:** ![user\_011a9e675447116ff76050abcd164ad563f9fe15bb62c6a7639546](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_011a9e675447116ff76050abcd164ad563f9fe15bb62c6a7639546](https://forums.unrealengine.com/u/user_011a9e675447116ff76050abcd164ad563f9fe15bb62c6a7639546)\
**Post date:** [August 1, 2023, 3:16pm UTC](https://forums.unrealengine.com/t/niagaradatainterfacephysicsasset-h-and-groomcomponent-h-in-unreal-5-1-header-not-found/718705/8 "2023-08-01T15:16:59Z")

</div>

> [@SicoSiber](#):
>
> I’ve got the same problem, but with a plugin, any idea on how I would go about fixing it?

I’ve got the same problem, but with a plugin, any idea on how I would go about fixing it?

---

<div class="post-metadata">

**Author:** ![mgy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mgy/32/1105802_2.png) [@mgy](https://forums.unrealengine.com/u/mgy)\
**Post date:** [September 23, 2023, 10:29pm UTC](https://forums.unrealengine.com/t/niagaradatainterfacephysicsasset-h-and-groomcomponent-h-in-unreal-5-1-header-not-found/718705/9 "2023-09-23T22:29:56Z")

</div>

Thank you! It helped!

---

<div class="post-metadata">

**Author:** ![Uotsab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Uotsab](https://forums.unrealengine.com/u/Uotsab)\
**Post date:** [August 24, 2024, 2:18pm UTC](https://forums.unrealengine.com/t/niagaradatainterfacephysicsasset-h-and-groomcomponent-h-in-unreal-5-1-header-not-found/718705/10 "2024-08-24T14:18:10Z")

</div>

More details if you’re having problem?  
This may occur if this is something like:

`#include “GroomComponent.h;”`  
Delete - ‘;’ - this thing.

`#include “GroomComponent.h”`  
Careful about simple syntaxes.

Edit:  
wait your error is telling to you:

`#include ;“GroomComponent.h”`  
Something like this. To be clear, more details required.

---

<div class="post-metadata">

**Author:** ![Prabhdeep132](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Prabhdeep132](https://forums.unrealengine.com/u/Prabhdeep132)\
**Post date:** [September 8, 2024, 1:26pm UTC](https://forums.unrealengine.com/t/niagaradatainterfacephysicsasset-h-and-groomcomponent-h-in-unreal-5-1-header-not-found/718705/11 "2024-09-08T13:26:42Z")

</div>

I’ve found a way. it is because in the folder of HairStrands in Unreal Engine folder. In my case, it is 5.3

UE\_5.3\Engine\Plugins\Runtime\HairStrands\Source\HairStrandsCore\Public  
UE\_5.3\Engine\Plugins\Runtime\HairStrands\Source\HairStrandsCore\Private\

There will be no NiagaraDataInterfacePhysicsAsset.h as well as NiagaraDataInterfacePhysicsAsset.cpp

If you have UE 4 (in my case, it is 4.27) and go to same location copy from there and paste in same locations

UE\_5.3\Engine\Plugins\Runtime\HairStrands\Source\HairStrandsCore\Public\NiagaraDataInterfacePhysicsAsset.h  
UE\_5.3\Engine\Plugins\Runtime\HairStrands\Source\HairStrandsCore\Private\NiagaraDataInterfacePhysicsAsset.cpp
