UObject::CreateDefaultSubobject

Create a component or subobject, allows creating a child class and returning the parent class.