Hello.
I was always beliving that both Construction Script and OnConstruction are 2 exactly the same thing, just one is for BP and one is for C++. Either I am wrong or there is a bug in the engine.
Basically, afaik Construction Script destroys all components and recreates them, so if you add any components in it, they will be removed when CS is run again. This would explain why when I procedurally create them, they don’t stay in the world forever.
However when I moved my BP logic into C++ OnConstruction() they started staying so I create hundreds of unwanted components + when trying to manually destroy them from OnConstruction, the engine crashes.
Can someone tell me what is happening and what am I doing wrong?