# UInstancedStaticMeshComponent\* Not a recognized type?

**URL:** <https://forums.unrealengine.com/t/uinstancedstaticmeshcomponent-not-a-recognized-type/411988>\
**Category:** C++\
**Tags:** unreal-engine, UE4, CPP, question\
**Created:** [December 11, 2017, 7:02pm UTC](https://forums.unrealengine.com/t/uinstancedstaticmeshcomponent-not-a-recognized-type/411988 "2017-12-11T19:02:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MC1RScorpion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MC1RScorpion](https://forums.unrealengine.com/u/MC1RScorpion)\
**Post date:** [December 11, 2017, 7:02pm UTC](https://forums.unrealengine.com/t/uinstancedstaticmeshcomponent-not-a-recognized-type/411988/1 "2017-12-11T19:02:55Z")

</div>

Hello,

In my project I’ve been trying to add an instanced static mesh to an APawn in its constructor. Unfortunately, despite having declared the UStaticMeshComponent\* in the header file, compiling fails as the engine asks, “Did you mean UStaticMeshComponent?”

Has something changed and now instanced static meshes can no longer be created in the constructor?

Any advice would be appreciated.

Cheers.

---

<div class="post-metadata">

**Author:** ![Nachtmahr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nachtmahr](https://forums.unrealengine.com/u/Nachtmahr)\
**Post date:** [December 11, 2017, 11:17pm UTC](https://forums.unrealengine.com/t/uinstancedstaticmeshcomponent-not-a-recognized-type/411988/2 "2017-12-11T23:17:19Z")

</div>

#include “Components/InstancedStaticMeshComponent.h”

Advice: Learn some C++ essentials 😜

---

<div class="post-metadata">

**Author:** ![MC1RScorpion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MC1RScorpion](https://forums.unrealengine.com/u/MC1RScorpion)\
**Post date:** [December 13, 2017, 12:14am UTC](https://forums.unrealengine.com/t/uinstancedstaticmeshcomponent-not-a-recognized-type/411988/3 "2017-12-13T00:14:28Z")

</div>

Thanks for the help and the advice. I’m doing my best!
