The following code can lead to zombie asset files that work once, but cannot be subsequently loaded, after the editor session ends
auto particles = LoadObject<UParticleSystem<( /*asset path*/ );
particles->AddToRoot();
When I press the ESC key to end the game session I am frequently seeing this in my Content/Particles folder:
Note the 4 “None” icons. Subsequently running the game will cause warning about “could not load asset” in the log. However closing the editor and restarting works. I have tried calling ConditionalBeginDestroy() and RemoveFromRoot() in my game mode subclass’s EndPlay() to try to release the assets, without success.
I have seen similar issues with audio assets.
Clicking on one of the “None” files results in a log warning
LogUObjectGlobals:Warning: Failed to find object 'Object /Game/Particles/P_magicCircle1.None'