UClass::GetDefaultObject

Get the default object from the class and cast to a particular type

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/Class.h"

Syntax

template<class T>
T * GetDefaultObject() const

Remarks

Get the default object from the class and cast to a particular type

Returns

the CDO for this class

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