# How to handle persistent level properties

**URL:** <https://forums.unrealengine.com/t/how-to-handle-persistent-level-properties/361879>\
**Category:** C++\
**Tags:** properties, unreal-engine, persistent-level, CPP, question\
**Created:** [June 24, 2016, 6:59am UTC](https://forums.unrealengine.com/t/how-to-handle-persistent-level-properties/361879 "2016-06-24T06:59:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClaudioPiccinni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClaudioPiccinni](https://forums.unrealengine.com/u/ClaudioPiccinni)\
**Post date:** [June 24, 2016, 6:59am UTC](https://forums.unrealengine.com/t/how-to-handle-persistent-level-properties/361879/1 "2016-06-24T06:59:46Z")

</div>

I have a c++ script that places persistent items in a level (for my game level editor). For example, the script places MESH X, and assign its property ‘ID’ a value Y.  
When I’m tampering around the level, changing small details here and there, sometimes I notice that the meshes have their properties reset to their default values (zero in this case, and it happens maybe after a light rebuild o changes to the mesh). Also arrays generated by the script get lost.

If my explanation is clear, how do you handle persistance for this data?  
What am I doing wrong?  
Thanks!

PS:

1. no, the Properties are not Transient.
2. No, the values are not set in the Constructor.
