Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObjectBaseUtility
Warnings * The behavior of this function is inconsistent for historical reasons and is not equivalent to RF_DefaultSubobject. Call IsTemplateSubobject to handle all types of subobject templates, or call GetArchetype() first if you have an instance.
Description
Returns whether this is a subobject (template or instance) that was originally defined inside a default class object. This will return true for all instanced objects created from an archetype that is not a class default object, but will only return true for template objects nested directly inside a class default object.
The behavior of this function is inconsistent for historical reasons and is not equivalent to RF_DefaultSubobject. Call IsTemplateSubobject to handle all types of subobject templates, or call GetArchetype() first if you have an instance.
| Name | IsDefaultSubobject |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectBaseUtility.h |
| Include Path | #include "UObject/UObjectBaseUtility.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectBaseUtility.cpp |
bool IsDefaultSubobject() const
true if this was instanced from a subobject template, or is the direct subobject of a class default object