5.1 Live Coding and c++ Problem

When I open and close the editor, my values ​​return to default. How can I solve this problem?

Live coding builds act as patches on top of the running editor instance.
They are not re-applied when relaunching editor.
You need to do a regular compile while the editor is closed.