Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/UObject/Object.h |
Include |
#include "UObject/Object.h" |
Create an optional component or subobject. Optional subobjects will not get created if a derived class specified DoNotCreateDefaultSubobject with the subobject's name.
Parameter |
Description |
---|---|
TReturnType |
Class of return type, all overrides must be of this type |
TClassToConstructByDefault |
Class of object to actually construct, must be a subclass of TReturnType |
SubobjectName |
Name of the new component |
bTransient |
True if the component is being assigned to a transient property. This does not make the component itself transient, but does stop it from inheriting parent defaults |