Navigation
API > API/Runtime > API/Runtime/CoreUObject
Flag describing desired behavior of GetSparseClassData in the case where the SparseClassData has not been created. The class's instance is guaranteed already created if the class has sparse data of its own, so the only differences in behavior are when the class does not have sparse data of its own.
| Name | EGetSparseClassDataMethod |
| Type | enum |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h |
| Include Path | #include "UObject/Class.h" |
Syntax
enum EGetSparseClassDataMethod
{
CreateIfNull,
ArchetypeIfNull,
ReturnIfNull,
DeferIfNull,
}
Values
| Name | Remarks |
|---|---|
| CreateIfNull | If not yet created, store and return a new instance, whether or not the class can use its archetype's instance. |
| ArchetypeIfNull | If not yet created, return the archetype instance (if possible to use for this class). |
| ReturnIfNull | This is an advanced flag and should usually be avoided. |
| DeferIfNull | If not yet created, return the archetype's instance (if possible to use for this class). |