Navigation
API > API/Runtime > API/Runtime/CoreUObject
| Name | UUserDefinedStruct |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/StructUtils/UserDefinedStruct.h |
| Include Path | #include "StructUtils/UserDefinedStruct.h" |
Syntax
UCLASS (MinimalAPI)
class UUserDefinedStruct : public UScriptStruct
Inheritance Hierarchy
- FStructBaseChain → UStruct → UScriptStruct → UUserDefinedStruct
- UObjectBase → UObjectBaseUtility → UObject → UField → UStruct → UScriptStruct → UUserDefinedStruct
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UUserDefinedStruct
(
const FObjectInitializer& ObjectInitializer |
StructUtils/UserDefinedStruct.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ChangedEvent | FOnStructChanged | StructUtils/UserDefinedStruct.h | ||
| EditorData | TObjectPtr< UObject > | StructUtils/UserDefinedStruct.h | ||
| ErrorMessage | FString | StructUtils/UserDefinedStruct.h | ||
| Guid | FGuid | Uniquely identifies this specific user struct | StructUtils/UserDefinedStruct.h |
|
| PrimaryStruct | TWeakObjectPtr< UUserDefinedStruct > | The original struct, when current struct isn't a temporary duplicate, the field should be null | StructUtils/UserDefinedStruct.h |
|
| Status | TEnumAsByte< enum EUserDefinedStructureStatus > | Status of this struct, outside of the editor it is assumed to always be UpToDate | StructUtils/UserDefinedStruct.h | |
| UUserDefinedStructEditorData | friend | StructUtils/UserDefinedStruct.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedCookedMetaDataPtr | TObjectPtr< UStructCookedMetaData > | StructUtils/UserDefinedStruct.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const uint8 * GetDefaultInstance() |
Returns the raw memory of the default instance | StructUtils/UserDefinedStruct.h | |
void InitializeStructIgnoreDefaults
(
void* Dest, |
Specifically initialize this struct without using the default instance data | StructUtils/UserDefinedStruct.h | |
virtual void OnChanged() |
StructUtils/UserDefinedStruct.h | ||
FOnStructChanged & OnStructChanged() |
StructUtils/UserDefinedStruct.h | ||
void UpdateStructFlags() |
Inspects properties and default values, setting appropriate StructFlags | StructUtils/UserDefinedStruct.h | |
void ValidateGuid() |
Creates a new guid if needed | StructUtils/UserDefinedStruct.h |
Overridden from UScriptStruct
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FGuid GetCustomGuid() |
Returns the custom Guid assigned to this struct for User Defined Structs, or an invalid Guid | StructUtils/UserDefinedStruct.h | |
virtual FString GetStructCPPName
(
uint32 CPPExportFlags |
Returns the (native, c++) name of the struct | StructUtils/UserDefinedStruct.h | |
virtual uint32 GetStructTypeHash
(
const void* Src |
Calls GetTypeHash for native structs, otherwise computes a hash of all struct members | StructUtils/UserDefinedStruct.h | |
virtual void PrepareCppStructOps () |
Look for the CppStructOps and hook it up | StructUtils/UserDefinedStruct.h | |
virtual void RecursivelyPreload() |
Used by User Defined Structs to preload this struct and any child objects | StructUtils/UserDefinedStruct.h |
Overridden from UStruct
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Look up a property by an alternate name if it was not found in the first search, this is overridden for user structs | StructUtils/UserDefinedStruct.h | ||
| Returns a human readable string for a given field, overridden for user defined structs | StructUtils/UserDefinedStruct.h | ||
virtual void InitializeStruct
(
void* Dest, |
Initialize a struct over uninitialized memory. | StructUtils/UserDefinedStruct.h | |
| Serializes list of properties, using property tags to handle mismatches | StructUtils/UserDefinedStruct.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual 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 | StructUtils/UserDefinedStruct.h | |
virtual void GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
StructUtils/UserDefinedStruct.h | ||
virtual void PostDuplicate
(
bool bDuplicateForPIE |
Called after duplication & serialization and before PostLoad. | StructUtils/UserDefinedStruct.h | |
virtual void PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | StructUtils/UserDefinedStruct.h | |
virtual void PostSaveRoot
(
FObjectPostSaveRootContext ObjectSaveContext |
Called from within SavePackage on the passed in base/root object. | StructUtils/UserDefinedStruct.h | |
virtual void PreSaveRoot
(
FObjectPreSaveRootContext ObjectSaveContext |
Called from within SavePackage on the passed in base/root object. | StructUtils/UserDefinedStruct.h | |
virtual void Serialize
(
FStructuredArchive::FRecord Record |
StructUtils/UserDefinedStruct.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSubclassOf< UStructCookedMetaData > GetCookedMetaDataClass() |
StructUtils/UserDefinedStruct.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddReferencedObjects
(
UObject* InThis, |
Returns references from default instance | StructUtils/UserDefinedStruct.h | |
static uint32 GetUserDefinedStructTypeHash
(
const void* Src, |
Computes hash | StructUtils/UserDefinedStruct.h |