UObject::CollectDefaultSubobjects

Uses the TArchiveObjectReferenceCollector to build a list of all components referenced by this object which have this object as the outer

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/Object.h

Include

#include "UObject/Object.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/Obj.cpp

Syntax

void CollectDefaultSubobjects
(
    TArray< UObject * > & OutDefaultSubobjects,
    bool bIncludeNestedSubobjects
) const

Remarks

Uses the TArchiveObjectReferenceCollector to build a list of all components referenced by this object which have this object as the outer

Parameters

Parameter

Description

OutDefaultSubobjects

the array that should be populated with the default subobjects "owned" by this object

bIncludeNestedSubobjects

controls whether subobjects which are contained by this object, but do not have this object as its direct Outer should be included

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss