Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/StructUtils
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UField
- UStruct
- UScriptStruct
- UUserDefinedStruct
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/StructUtils/UserDefinedStruct.h |
| Include | #include "StructUtils/UserDefinedStruct.h" |
Syntax
UCLASS (MinimalAPI)
class UUserDefinedStruct : public UScriptStruct
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIgnoreStructDefaults | Bool to indicate we want to initialize a version of this struct without defaults, this is set while allocating the DefaultStructInstance itself | |
| FOnStructChanged | ChangedEvent | ||
| FUserStructOnScopeIgnoreDefaults | DefaultStructInstance | Default instance of this struct with default values filled in, used to initialize structure | |
| TObjectPtr< UObject > | EditorData | ||
| FString | ErrorMessage | ||
| FGuid | Guid | Uniquely identifies this specific user struct | |
| TWeakObjectPtr< UUserDefinedStruct > | PrimaryStruct | The original struct, when current struct isn't a temporary duplicate, the field should be null | |
| TEnumAsByte< enum EUserDefinedStructureStatus > | Status | Status of this struct, outside of the editor it is assumed to always be UpToDate | |
| friend | UUserDefinedStructEditorData |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UUserDefinedStruct
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
UObject* InThis, |
Returns references from default instance | |
| TSubclassOf< UStructCookedMetaData > | |||
| const uint8 * | Returns the raw memory of the default instance | ||
| uint32 | GetUserDefinedStructTypeHash
(
const void* Src, |
Computes hash | |
| void | InitializeStructIgnoreDefaults
(
void* Dest, |
Specifically initialize this struct without using the default instance data | |
| void | OnChanged () |
||
| FOnStructChanged & | |||
| void | Inspects properties and default values, setting appropriate StructFlags | ||
| void | ValidateGuid () |
Creates a new guid if needed |
Overridden from UScriptStruct
| Type | Name | Description | |
|---|---|---|---|
| FGuid | Returns the custom Guid assigned to this struct for User Defined Structs, or an invalid Guid | ||
| FString | GetStructCPPName
(
uint32 CPPExportFlags |
Returns the (native, c++) name of the struct | |
| uint32 | GetStructTypeHash
(
const void* Src |
Calls GetTypeHash for native structs, otherwise computes a hash of all struct members | |
| void | Look for the CppStructOps and hook it up | ||
| void | Used by User Defined Structs to preload this struct and any child objects |
Overridden from UStruct
| Type | Name | Description | |
|---|---|---|---|
| FProperty * | CustomFindProperty
(
const FName InName |
Look up a property by an alternate name if it was not found in the first search, this is overridden for user structs | |
| FString | GetAuthoredNameForField
(
const FField* Field |
Returns a human readable string for a given field, overridden for user defined structs | |
| void | InitializeStruct
(
void* Dest, |
Initialize a struct over uninitialized memory. | |
| void | SerializeTaggedProperties
(
FStructuredArchive::FSlot Slot, |
Serializes list of properties, using property tags to handle mismatches |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | GetAssetRegistryTags
(
FAssetRegistryTagsContext Context |
Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects | |
| void | GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
||
| void | PostDuplicate
(
bool bDuplicateForPIE |
Called after duplication & serialization and before PostLoad. | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | PostSaveRoot
(
FObjectPostSaveRootContext ObjectSaveContext |
Called from within SavePackage on the passed in base/root object. | |
| void | PreSaveRoot
(
FObjectPreSaveRootContext ObjectSaveContext |
Called from within SavePackage on the passed in base/root object. | |
| void | Serialize
(
FStructuredArchive::FRecord Record |