Conditionally Create Components in Constructor

There might be issue doing conditional things in constructor or else it is something like build information that does not change. Constructor is used to generate CDO with is countasins default values and it’s only generated in engine init and constructor data gonna be generated only on that moment, there mightfearther problem as blueprint dupicate and override that CDO to child blueprints. So yea constructor is not good place to do dynamic or conditional thigns in constructor.

If you want to do thins kind of things, constructor is best place, also you can init both component and enable only one depending on bool state. But i think better would be if oyu made base class with common stuff and two child classes for static and skeletal mesh, which would also help you handle both differently