Edited this response.
You can absolutely create sub-components in a component constructor, you just have to use CreateDefaultSubobject
to do it rather than NewObject
.
I updated my original post so it will contain valid info in case people look for it in the future. (I originally suggested NewObject
, but that doesn’t work from a constructor).