Navigation
API > API/Runtime > API/Runtime/CoreUObject
Flags describing a struct
This MUST be kept in sync with EStructFlags defined in Engine\Source\Programs\Shared\EpicGames.Core\UnrealEngineTypes.cs
| Name | EStructFlags |
| Type | enum |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h |
| Include Path | #include "UObject/Class.h" |
Syntax
enum EStructFlags
{
STRUCT_NoFlags = 0x00000000,
STRUCT_Native = 0x00000001,
STRUCT_IdenticalNative = 0x00000002,
STRUCT_HasInstancedReference = 0x00000004,
STRUCT_NoExport = 0x00000008,
STRUCT_Atomic = 0x00000010,
STRUCT_Immutable = 0x00000020,
STRUCT_AddStructReferencedObjects = 0x00000040,
STRUCT_RequiredAPI = 0x00000200,
STRUCT_NetSerializeNative = 0x00000400,
STRUCT_SerializeNative = 0x00000800,
STRUCT_CopyNative = 0x00001000,
STRUCT_IsPlainOldData = 0x00002000,
STRUCT_NoDestructor = 0x00004000,
STRUCT_ZeroConstructor = 0x00008000,
STRUCT_ExportTextItemNative = 0x00010000,
STRUCT_ImportTextItemNative = 0x00020000,
STRUCT_PostSerializeNative = 0x00040000,
STRUCT_SerializeFromMismatchedTag = 0x00080000,
STRUCT_NetDeltaSerializeNative = 0x00100000,
STRUCT_PostScriptConstruct = 0x00200000,
STRUCT_NetSharedSerialization = 0x00400000,
STRUCT_Trashed = 0x00800000,
STRUCT_NewerVersionExists = 0x01000000,
STRUCT_CanEditChange = 0x02000000,
STRUCT_Visitor = 0x04000000,
STRUCT_Inherit = STRUCT_HasInstancedReference|STRUCT_Atomic,
STRUCT_ComputedFlags = STRUCT_NetDeltaSerializeNative | STRUCT_NetSerializeNative | STRUCT_SerializeNative | STRUCT_PostSerializeNative | STRUCT_CopyNative | STRUCT_IsPlainOldData | STRUCT_NoDestructor | STRUCT_ZeroConstructor | STRUCT_IdenticalNative | STRUCT_AddStructReferencedObjects | STRUCT_ExportTextItemNative | STRUCT_ImportTextItemNative | STRUCT_SerializeFromMismatchedTag | STRUCT_PostScriptConstruct | STRUCT_NetSharedSerialization,
}
Values
| Name | Remarks |
|---|---|
| STRUCT_NoFlags | State flags. |
| STRUCT_Native | |
| STRUCT_IdenticalNative | If set, this struct will be compared using native code |
| STRUCT_HasInstancedReference | |
| STRUCT_NoExport | |
| STRUCT_Atomic | Indicates that this struct should always be serialized as a single unit |
| STRUCT_Immutable | Indicates that this struct uses binary serialization; it is unsafe to add/remove members from this struct without incrementing the package version |
| STRUCT_AddStructReferencedObjects | If set, native code needs to be run to find referenced objects |
| STRUCT_RequiredAPI | Indicates that this struct should be exportable/importable at the DLL layer. |
| STRUCT_NetSerializeNative | If set, this struct will be serialized using the CPP net serializer |
| STRUCT_SerializeNative | If set, this struct will be serialized using the CPP serializer |
| STRUCT_CopyNative | If set, this struct will be copied using the CPP operator= |
| STRUCT_IsPlainOldData | If set, this struct will be copied using memcpy |
| STRUCT_NoDestructor | If set, this struct has no destructor and non will be called. |
| STRUCT_ZeroConstructor | If set, this struct will not be constructed because it is assumed that memory is zero before construction. |
| STRUCT_ExportTextItemNative | If set, native code will be used to export text |
| STRUCT_ImportTextItemNative | If set, native code will be used to export text |
| STRUCT_PostSerializeNative | If set, this struct will have PostSerialize called on it after CPP serializer or tagged property serialization is complete |
| STRUCT_SerializeFromMismatchedTag | If set, this struct will have SerializeFromMismatchedTag called on it if a mismatched tag is encountered. |
| STRUCT_NetDeltaSerializeNative | If set, this struct will be serialized using the CPP net delta serializer |
| STRUCT_PostScriptConstruct | If set, this struct will be have PostScriptConstruct called on it after a temporary object is constructed in a running blueprint |
| STRUCT_NetSharedSerialization | If set, this struct can share net serialization state across connections |
| STRUCT_Trashed | If set, this struct has been cleaned and sanitized (trashed) and should not be used |
| STRUCT_NewerVersionExists | If set, this structure has been replaced via reinstancing |
| STRUCT_CanEditChange | If set, this struct will have CanEditChange on it in the editor to determine if a child property can be edited |
| STRUCT_Visitor | If set, this struct will have Visit on it to allow custom property visiting implementation |
| STRUCT_Inherit | Struct flags that are automatically inherited |
| STRUCT_ComputedFlags | Flags that are always computed, never loaded or done with code generation |