TSubclassOf::GetDefaultObject

Get the CDO if we are referencing a valid class

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Templates/SubclassOf.h

Include

#include "Templates/SubclassOf.h"

Syntax

TClass * GetDefaultObject() const

Remarks

Get the CDO if we are referencing a valid class

Returns

the CDO, or null if class is null

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