All Instanced components outside of c++ constructor of an Actor are reset to null when compile a blueprint that inherit the c++ Actor

Read this at step 8 and 9 you will get the answer to your question.
Blueprint Compilation - Gamedev Guide (ikrima.dev)

Surely the CDO is recreated when hitting compile on my blueprint. And then a new instance of my actor is created and then a copy of values from the old instance is done on the new one before the destruction of the old instance. The real question here is why all components created outside of my constructor are not restored? there are not even there anymore. there position in the array is set to none (null)

I don’t know if there is a flag i could add to components added outside the constructor so that there are restored back in there state before the BP compile.

1 Like