I keep losing data assets in my project.
Data assets are based on custom C++ class (UDataAsset), and usually after I do couple of changes to the class, after editor restart some of the existing assets disappear from content browser and I see “Failed import” message in output log.
LoadErrors:Error: Error /Game/Maps/testroom : Failed import for SpellConfig /Game/Magic/Spells/SelfCastTest.SelfCastTest
This is getting really annoying and it is quite suboptimal. I’d expect data to persist despite class changes.
Is there a way to fix that? Aside from freezing data asset design, I mean.
Bumping because I am having a similar issue with my project. It wasn’t happening before the most recent 5.0 update. My referenced Data assets are failing to load after restarting the engine.
Serialization should keep working unless you’re doing custom serialization, is that the case?
Otherwise I imagine what’s happened is you’ve changed the name of the base class. That’ll break all existing uses but luckily there’s a system to resolve this, just use redirects to have references to the old class name load the new class: Core Redirects | Unreal Engine 4.27 Documentation
Stuff like adding, removing, renaming and changing the types of UProperties should only cause serialization failures for those specific properties, not the whole class. In that case they’ll load in with their default values.