I created my own Asset type in С++ with some variables. Then in the editor I created an object of this type and changed its variables(it should be defaults values). After that I create a variable in character and store that object in this variable. Create some blueprint scripts, which change object variables. After executing that scripts in a game I open my asset. All changes were in Asset in the editor. I thought that the changes in the game mode shouldn’t be affect in the editor. How do I fix it?
If i understand your question you want to be able to edit a data asset in-game but not change the actual data asset?
If I understand the question properly I think you should create a temporary data asset or structure for your code to reference so that those values can be can be edited in-game and not affect the desired data asset.