# How to keep / save "data asset" datas (or is this a bug?)

**URL:** <https://forums.unrealengine.com/t/how-to-keep-save-data-asset-datas-or-is-this-a-bug/527701>\
**Category:** Blueprint\
**Tags:** Data-Types, unreal-engine, UE5-0, Blueprint, question\
**Created:** [April 14, 2022, 12:48am UTC](https://forums.unrealengine.com/t/how-to-keep-save-data-asset-datas-or-is-this-a-bug/527701 "2022-04-14T00:48:28Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wonse](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wonse](https://forums.unrealengine.com/u/Wonse)\
**Post date:** [April 14, 2022, 12:48am UTC](https://forums.unrealengine.com/t/how-to-keep-save-data-asset-datas-or-is-this-a-bug/527701/1 "2022-04-14T00:48:28Z")

</div>

Hello ! i’m using the “data asset” for the first time, and it seem to lose reference when i’m restarting the editor (not everytime).

Here my case :

I’m have a Class “MoveData” with parent “Primary Data Asset”

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/e/cce4a0b141970f37cd2a1ba3da39363aa736309e.png)

One of the Variable of the “MoveData” is a structure “Move combo” with 4 variable of type “MoveData”  
(so, each movedata is referencing up to 4 other movedata)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/7/2e734381561568894e6fb7ba65372d21c292ec51.png)

I use it to have each attack of my player to be able to combo on 4 other moves. (so, combo 1\_1 have a reference to Combo1\_2 and to GS\_1, 2 other movedata)

and when i restart the editor, the move combo are something just back to “none”

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/1/55162fee533fdabb6422cfdc2c1afdf04c7fa372.png)

is this a bug ? Is there a way to avoid the issue ? Should i stock my combo data on another way ?

---

<div class="post-metadata">

**Author:** ![Wonse](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wonse](https://forums.unrealengine.com/u/Wonse)\
**Post date:** [April 14, 2022, 12:44pm UTC](https://forums.unrealengine.com/t/how-to-keep-save-data-asset-datas-or-is-this-a-bug/527701/2 "2022-04-14T12:44:28Z")

</div>

is there any other basic tools to save data ? (BP)

---

<div class="post-metadata">

**Author:** ![Mathieu\_Tactical](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mathieu\_Tactical](https://forums.unrealengine.com/u/Mathieu_Tactical)\
**Post date:** [September 16, 2022, 1:14am UTC](https://forums.unrealengine.com/t/how-to-keep-save-data-asset-datas-or-is-this-a-bug/527701/3 "2022-09-16T01:14:35Z")

</div>

Hi there,

You should try adding these class property on the children data assets.  
UCLASS(DefaultToInstanced, EditInlineNew)

It did the trick for us, adding the ability to “add” the subelement in the details panel, as well as serializing it correctly.

Cheers,

---

<div class="post-metadata">

**Author:** ![Vahahal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vahahal](https://forums.unrealengine.com/u/Vahahal)\
**Post date:** [March 27, 2023, 8:58pm UTC](https://forums.unrealengine.com/t/how-to-keep-save-data-asset-datas-or-is-this-a-bug/527701/4 "2023-03-27T20:58:26Z")

</div>

Hi, I had the same problem as you, some of the data assets kept reverting to their default values when the editor was restarted (I should mention that I only do blueprints).

After searching, I think I have something. It seems that the problem occurs when you put a Data Asset as a variable within another Data Asset and the first Data Asset is referenced several times in this way.

My example: I have objects that I would like to drop resources when we destroy them. In my case, I would like my resources to be Data Assets. A DA\_Metal, DA\_Glass, DA\_Plastic, etc… which all inherit a dedicated PrimaryDataAsset (PDA\_Ressource). In these I have data that is specific to each type of resource (I won’t go into detail).

Then, for each destructible object, I make a DataAsset with its own PrimaryDataAsset too (PDA\_Object). So for two objects, I have a Data Asset “Object1” and a Data Asset “Object2”. In the latter, I have a map variable named “resources” with the type of the resource as input (PDA\_Ressource) and an integer as value. I come to choose the type of the resource and the amount of the resource that the object leaves on the ground.

Well, from then on, I noticed that my resources in the form of Data Asset had their values reset to zero on restart if and only if the Data Asset was referenced in both objects at the same time. If it was referenced only once or not at all, the values were retained.

My exploration of the problem ends here. I will just review the organisation of my assets a bit. Hopefully this will have helped you. 🙂

---

<div class="post-metadata">

**Author:** ![manablight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@manablight](https://forums.unrealengine.com/u/manablight)\
**Post date:** [June 21, 2023, 2:15am UTC](https://forums.unrealengine.com/t/how-to-keep-save-data-asset-datas-or-is-this-a-bug/527701/5 "2023-06-21T02:15:33Z")

</div>

Did you ever find a solution to this? Looks like it’s still in and the bug makes it hard to use the architecture I planned.

---

<div class="post-metadata">

**Author:** ![martingor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@martingor](https://forums.unrealengine.com/u/martingor)\
**Post date:** [July 29, 2023, 5:43pm UTC](https://forums.unrealengine.com/t/how-to-keep-save-data-asset-datas-or-is-this-a-bug/527701/6 "2023-07-29T17:43:15Z")

</div>

Same issue in UE 5.2. The weird part is that unreal started doing it only now, even though I switched version 2 months ago

---

<div class="post-metadata">

**Author:** ![TreeBeard22](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TreeBeard22](https://forums.unrealengine.com/u/TreeBeard22)\
**Post date:** [September 26, 2023, 2:24am UTC](https://forums.unrealengine.com/t/how-to-keep-save-data-asset-datas-or-is-this-a-bug/527701/7 "2023-09-26T02:24:22Z")

</div>

In UE 5.3 and and have the same issue using the MassAI plugin. Let me know if you find any solutions.

---

<div class="post-metadata">

**Author:** ![Beastmil1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Beastmil1](https://forums.unrealengine.com/u/Beastmil1)\
**Post date:** [December 10, 2023, 11:24am UTC](https://forums.unrealengine.com/t/how-to-keep-save-data-asset-datas-or-is-this-a-bug/527701/8 "2023-12-10T11:24:04Z")

</div>

Same here. Very annoying Bug. I hope this will be fixed soon

---

<div class="post-metadata">

**Author:** ![Beastmil1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Beastmil1](https://forums.unrealengine.com/u/Beastmil1)\
**Post date:** [December 10, 2023, 5:49pm UTC](https://forums.unrealengine.com/t/how-to-keep-save-data-asset-datas-or-is-this-a-bug/527701/9 "2023-12-10T17:49:36Z")

</div>

The assigned variable was marked as deprecated in my case. After unchecking that it seemed to work again.

---

<div class="post-metadata">

**Author:** ![MissileMan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MissileMan](https://forums.unrealengine.com/u/MissileMan)\
**Post date:** [February 6, 2025, 4:54pm UTC](https://forums.unrealengine.com/t/how-to-keep-save-data-asset-datas-or-is-this-a-bug/527701/10 "2025-02-06T16:54:37Z")

</div>

I found that if I checked the “Config Variable” for the child asset variable within the Parent Class (Primary Data Asset) details panel, it would save my updated default values when I close the project and reopen it.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/e/69e6e4938b06125d3d1ccdd54384543262b0ab23.png)

---

<div class="post-metadata">

**Author:** ![Esenin27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Esenin27](https://forums.unrealengine.com/u/Esenin27)\
**Post date:** [March 23, 2025, 7:07pm UTC](https://forums.unrealengine.com/t/how-to-keep-save-data-asset-datas-or-is-this-a-bug/527701/11 "2025-03-23T19:07:54Z")

</div>

I had the same problem and probably collected all possible cases.  
My Data Asset contains a TMap with a key structure that contains an Enum, and the value contains a structure that contains other Data Assets.  
None of the suggested solutions to this problem helped me.

| | UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = Animation) |
| --- | --- |
| | TMap\<FAnimationContext, FAnimData\> Data; |

But I found a solution for myself by simply renaming my Data Assets variable, after that it stopped resetting to None after restarting the Editor.

I deleted the Binaries, Intermediate and DerivedDataCache folders, fixed the redirectors, but this did not help, it seems to be cached somewhere else.

---

<div class="post-metadata">

**Author:** ![Mattwoj73](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mattwoj73](https://forums.unrealengine.com/u/Mattwoj73)\
**Post date:** [June 24, 2026, 11:14pm UTC](https://forums.unrealengine.com/t/how-to-keep-save-data-asset-datas-or-is-this-a-bug/527701/12 "2026-06-24T23:14:06Z")

</div>

Thank you MissileMan, you have saved me repeated months of headaches where this issue would happen at random. Ticking Config Variable is the answer.
