FObjectInitializer::SetDefaultSubobjectClass

Sets the class to use for a subobject defined in a base class, the class must be a subclass of the class used by the base class.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/UObjectGlobals.h"

Syntax

template<class T>
FObjectInitializer const & SetDefaultSubobjectClass
(
    FName SubobjectName
) const

Remarks

Sets the class to use for a subobject defined in a base class, the class must be a subclass of the class used by the base class.

Parameters

Parameter

Description

SubobjectName

name of the new component or subobject

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