# Generate Procedural Mesh

**URL:** <https://forums.unrealengine.com/t/generate-procedural-mesh/1393>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [March 30, 2014, 5:34am UTC](https://forums.unrealengine.com/t/generate-procedural-mesh/1393 "2014-03-30T05:34:58Z")\
**Posts on this page:** 1\
**Showing post:** 102

<div class="post-metadata">

**Author:** ![Taces](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Taces](https://forums.unrealengine.com/u/Taces)\
**Post date:** [October 17, 2014, 2:59pm UTC](https://forums.unrealengine.com/t/generate-procedural-mesh/1393/102 "2014-10-17T14:59:41Z")

</div>

If anybody else has the same issue as I did (Material is not applied), I figured out how to do it: Instead of applying the material inside the constructor of my actor, I had to apply it in “PostInitializeComponents” - this way everything works fine! Although I don’t really understand why it doesn’t work in the constructor, it would be great if somebody could explan that? I’d suppose that the components are recreated after the constructor of my actor, but I dont’ know why this should happen.

---

_[View the full topic](https://forums.unrealengine.com/t/generate-procedural-mesh/1393)._
