[C++] Custom component set to null by FObjectInitializer after editor reload

For the sake of keeping the question up to date and all discussion in one place, here is a link to the answerhub question:

We’re having a very similar issue. In our case a property that points to a custom component resets to null every time we do a compile. I’m trying to resolve the issue right now, and will post a solution if I find it.

In my case, I have forgotten to call Super () in the constructor of my base class that was creating the components (I had CharacterBase and then derived MonsterCharacterbase, and CharacterBase wasn’t calling Super ()). looking at your code I think you haven’t made the same kind of mistake, but check in any case.