# Header doesn't work

**URL:** <https://forums.unrealengine.com/t/header-doesnt-work/1998482>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question\
**Created:** [August 30, 2024, 3:17pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482 "2024-08-30T15:17:51Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![cilpsi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cilpsi](https://forums.unrealengine.com/u/cilpsi)\
**Post date:** [August 30, 2024, 3:17pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482/1 "2024-08-30T15:17:51Z")

</div>

I’m pretty new to c++ so its very possible i’ve overlooked something but as far as i understood the header should enable the engine to recognize this variabletype [FDynamicMeshAttributeSet | Unreal Engine 5.4 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/GeometryCore/DynamicMesh/FDynamicMeshAttributeSet) , but it doesn’t.

---

<div class="post-metadata">

**Author:** ![GabUECV](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gabuecv/32/1194717_2.png) [@GabUECV](https://forums.unrealengine.com/u/GabUECV)\
**Post date:** [August 30, 2024, 3:24pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482/2 "2024-08-30T15:24:30Z")

</div>

What kind of error output do you have while compiling ?

---

<div class="post-metadata">

**Author:** ![cilpsi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cilpsi](https://forums.unrealengine.com/u/cilpsi)\
**Post date:** [August 30, 2024, 3:51pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482/3 "2024-08-30T15:51:20Z")

</div>

the language is german and according to translator its: undeclared identifier  
 ![Screenshot 2024-08-30 175034](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/a/c7a2354efc2608701e9df06d87692cb70ad39add.png)

---

<div class="post-metadata">

**Author:** ![GabUECV](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gabuecv/32/1194717_2.png) [@GabUECV](https://forums.unrealengine.com/u/GabUECV)\
**Post date:** [August 30, 2024, 4:01pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482/4 "2024-08-30T16:01:51Z")

</div>

> [@cilpsi](#):
>
> [FDynamicMeshAttributeSet](https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/GeometryCore/DynamicMesh/FDynamicMeshAttributeSet)

Maybe you forgot to add:

`#include "DynamicMesh/DynamicMeshAttributeSet.h"`

at the beginning of you .cpp file ?

Please show a bit more of the code you have where you use the FDynamicMeshAttributeSet itself

---

<div class="post-metadata">

**Author:** ![cilpsi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cilpsi](https://forums.unrealengine.com/u/cilpsi)\
**Post date:** [August 30, 2024, 4:04pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482/5 "2024-08-30T16:04:08Z")

</div>

Here you go

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/a/83aa3c4d82f253ef3f6938badf0563d929979666.png)

---

<div class="post-metadata">

**Author:** ![KaidoomDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kaidoomdev/32/977996_2.png) [@KaidoomDev](https://forums.unrealengine.com/u/KaidoomDev)\
**Post date:** [August 30, 2024, 4:06pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482/6 "2024-08-30T16:06:27Z")

</div>

Do you get this error when compiling to is it just intellisense ?

---

<div class="post-metadata">

**Author:** ![cilpsi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cilpsi](https://forums.unrealengine.com/u/cilpsi)\
**Post date:** [August 30, 2024, 4:07pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482/7 "2024-08-30T16:07:19Z")

</div>

i get this single error and no other when i compile it via Unreal Engines live coding

---

<div class="post-metadata">

**Author:** ![GabUECV](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gabuecv/32/1194717_2.png) [@GabUECV](https://forums.unrealengine.com/u/GabUECV)\
**Post date:** [August 30, 2024, 4:11pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482/8 "2024-08-30T16:11:09Z")

</div>

This could be a weird namespace issue.

Does it work if you add `UE::Geometry::` in front of `FDynamicMeshAttributeSet`

---

<div class="post-metadata">

**Author:** ![cilpsi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cilpsi](https://forums.unrealengine.com/u/cilpsi)\
**Post date:** [August 30, 2024, 4:13pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482/9 "2024-08-30T16:13:24Z")

</div>

this seems to work. ofc i get another error xD but this time its related to something else  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/e/dee5bad8ea5467c56f426bb05cc8e6b3d7579c0f.png)  
tysm for the fast help guys

---

<div class="post-metadata">

**Author:** ![cilpsi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cilpsi](https://forums.unrealengine.com/u/cilpsi)\
**Post date:** [August 30, 2024, 4:13pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482/10 "2024-08-30T16:13:59Z")

</div>

does this happen often or only in rare cases btw?

---

<div class="post-metadata">

**Author:** ![GabUECV](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gabuecv/32/1194717_2.png) [@GabUECV](https://forums.unrealengine.com/u/GabUECV)\
**Post date:** [August 30, 2024, 4:18pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482/11 "2024-08-30T16:18:55Z")

</div>

I am not expert enough to know how and when UE namespaces are supposed to be used. It look suspicious to have to do like this, but why not after all. Sorry I can’t help more on this 🙂

Though, the GetValue seems to relate to a different issue: it seems there is no such function in a FDynamicMeshAttributeSet.

---

<div class="post-metadata">

**Author:** ![cilpsi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cilpsi](https://forums.unrealengine.com/u/cilpsi)\
**Post date:** [August 30, 2024, 4:21pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482/12 "2024-08-30T16:21:33Z")

</div>

yea i originally had the same error on FDynamicMeshPolygonAttribute and tested around with FDynamicMeshAttribute. The error is resolved when i use FDynamicMeshPolygonAttribute which was my intent so all works perfectly now ^^

---

<div class="post-metadata">

**Author:** ![KaidoomDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kaidoomdev/32/977996_2.png) [@KaidoomDev](https://forums.unrealengine.com/u/KaidoomDev)\
**Post date:** [August 30, 2024, 4:28pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482/13 "2024-08-30T16:28:21Z")

</div>

Try using UE::Geometry namespace like this  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/f/6cf380fb79d03346f751b9b5895bb69c498a3ae7.png)

If you still have issues go to your Build.cs and add GeometryCore

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 29, 2024, 4:29pm UTC](https://forums.unrealengine.com/t/header-doesnt-work/1998482/14 "2024-09-29T16:29:22Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
