Why do some of my assets need be reopened to work properly after closing editor?

Hello,

Recently I rearranged my gun blueprint script, and i have a bullethole decal variable and a gunshot sound variable. This way I can change it from gun to gun in child classes. For some reason, after I exit the editor, reopen, play the game and shoot, no decals spawn, and my sound doesnt play. I wouldnt have even known they null has the editor not thrown me post play errors. it said “could not find decal” or something like that, basically a null exception. I can definitely say that my variables are set. When I open the sound asset in unreal (and same to the decal material) it starts working again. Any idea why this is?

EDIT

I should also mention the assets are referenced via asset id’s

I’ve encountered a bug manifested itself in a similar manner. I couldn’t replicate it, so did not file a bug report. My problem was that even though child variable were set correctly in the editor, it would not keep these values when it instantiates the objects ingame. Check if that’s whats happening to you.

I used a workaround to manually reset those variables in “Constructions” or “Begin Play”. Otherwise they would load without values. Do a couple of “Prints” and see if that is what is happening to you.