Download

What is default subobject?

What is default subobject and what does “default” term mean in this context? Can i use NewObject instead of CreateDefaultSubobject?

I think “default” means that the subobject is created when its parent object is created. When you create a Bluepring class you can add components that will be parts of this object. In C++ this is done by calling CreateDefaultSubobject in constructor.

CreateDefaultSubObject - use only in contructor
NewObject - use when BeginPlay() has started