Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UClass
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T * GetDefaultObject () |
Get the default object from the class and cast to a particular type | UObject/Class.h | |
UObject * GetDefaultObject
(
bool bCreateIfNeeded |
Get the default object from the class | UObject/Class.h |
GetDefaultObject()
Description
Get the default object from the class and cast to a particular type
| Name | GetDefaultObject |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h |
| Include Path | #include "UObject/Class.h" |
template<class T>
T * GetDefaultObject() const
the CDO for this class
GetDefaultObject(bool)
Description
Get the default object from the class
| Name | GetDefaultObject |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h |
| Include Path | #include "UObject/Class.h" |
UObject * GetDefaultObject
(
bool bCreateIfNeeded
) const
the CDO for this class
Parameters
| Name | Remarks |
|---|---|
| bCreateIfNeeded | if true (default) then the CDO is created if it is null |