Save and Load foliage?

Hey everyone!

We are actually working on a save game system and we have to save our foliage (cause the player can cut trees, rocks…) and load it on game loading.

We are trying to save all the instanced static mesh components but it’s not working…
Here is the code:

The save:

https://ton.twitter.com/i/ton/data/dm/1095291363564900356/1095291352202518528/GeMjQBZf.jpg

The load:

https://ton.twitter.com/i/ton/data/dm/1095291442564599812/1095291431340650496/1JzhKHMa.jpg

At loading, the game remove all the foliages but not add instances… A print show us that the differents components are saved.

Thanks for your answer!!

Also encountered problems with saving tree Foliage instance components

If someone ever land here again here is the solution: https://www.youtube.com/watch?v=ZBW4boYah6c&ab_channel=DragonsaurStudios