# Create Foliage in C++

**URL:** <https://forums.unrealengine.com/t/create-foliage-in-c/372115>\
**Category:** World Creation\
**Tags:** culling, spawn, unreal-engine, Foliage, CPP, question\
**Created:** [September 30, 2016, 10:11pm UTC](https://forums.unrealengine.com/t/create-foliage-in-c/372115 "2016-09-30T22:11:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![apfelbaum](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/apfelbaum/32/1194515_2.png) [@apfelbaum](https://forums.unrealengine.com/u/apfelbaum)\
**Post date:** [June 27, 2021, 4:56pm UTC](https://forums.unrealengine.com/t/create-foliage-in-c/372115/5 "2021-06-27T16:56:07Z")

</div>

So i made it working but I have problems saving and further adjusting the foliage.  
Say i have some datatables that i want to use to populate the foliagetool. The foliage is not saved except when i add at least one instance via the foliage tool after running the c++ code; then it is somehow marked dirty i assume and it can be saved without being discarded when loading a different level or reopening the project. But I can never access the foliage again with the foliage tool as it is invisible to it, only via code.

Any hints?

Best regards

---

_[View the full topic](https://forums.unrealengine.com/t/create-foliage-in-c/372115)._
