Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > UObject
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UField
- UStruct
- UScriptStruct
- UAnimBlueprintGeneratedStruct
- UMovieSceneKeyStructType
- UUserDefinedStruct
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h |
Include | #include "UObject/Class.h" |
Syntax
class UScriptStruct : public UStruct
Remarks
Reflection data for a standalone structure declared in a header or as a user defined struct
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bPrepareCppStructOpsCompleted | True if we have performed PrepareCppStructOps |
![]() |
ICppStructOps * | CppStructOps | Holds the Cpp ctors and dtors, sizeof, etc. Is not owned by this and is not released. |
![]() |
EStructFlags | StructFlags |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UScriptStruct
(
FVTableHelper& Helper |
DO NOT USE. This constructor is for internal usage only for hot-reload purposes. | |
![]() |
UScriptStruct
(
const FObjectInitializer& ObjectInitializer |
||
![]() |
UScriptStruct
(
EStaticConstructor, |
||
![]() |
UScriptStruct
(
const FObjectInitializer& ObjectInitializer, |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | __DefaultConstructor
(
const FObjectInitializer& X |
|
![]() ![]() |
UObject * | __VTableCtorCaller
(
FVTableHelper& Helper |
|
![]() |
void | Resets currently assigned CppStructOps, called when loading a struct | |
![]() ![]() |
void | ClearScriptStruct
(
void* Dest, |
Reinitialize a struct in memory. |
![]() ![]() |
bool | CompareScriptStruct
(
const void* A, |
Compare two script structs |
![]() ![]() |
void | CopyScriptStruct
(
void* Dest, |
Copy a struct over an existing struct |
![]() ![]() |
void | DeferCppStructOps
(
FTopLevelAssetPath Target, |
Stash a CppStructOps for future use |
![]() ![]() |
void | DeferCppStructOps
(
FTopLevelAssetPath Target |
|
![]() ![]() |
void | ExportText
(
FString& ValueStr, |
Export script struct to a string that can later be imported |
![]() ![]() ![]() |
bool | FindInnerPropertyInstance
(
FName PropertyName, |
Provide an FProperty and data pointer when given an FName of a property that this object owns indirectly (ie FInstancedStruct) |
![]() ![]() |
ICppStructOps * | Returns the CppStructOps that can be used to do custom operations | |
![]() ![]() ![]() |
FGuid | Returns the custom Guid assigned to this struct for User Defined Structs, or an invalid Guid | |
![]() ![]() |
FTopLevelAssetPath | Similar to GetStructPathName() but works with nested structs by using just the package name and struct name so a struct path name /Package/Name.Object:Struct will be flattened to /Package/Name.Struct. | |
![]() ![]() ![]() |
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 |
![]() ![]() |
bool | HasDefaults () |
If it is native, it is assumed to have defaults because it has a constructor |
![]() ![]() |
const TCHAR * | ImportText
(
const TCHAR* Buffer, |
Sets value of script struct based on imported string |
![]() ![]() |
const TCHAR * | ImportText
(
const TCHAR* Buffer, |
Sets value of script struct based on imported string |
![]() ![]() ![]() |
void | InitializeDefaultValue
(
uint8* InStructData |
Initializes this structure to its default values |
![]() ![]() |
void | Look for the CppStructOps and hook it up | |
![]() ![]() |
void | Used by User Defined Structs to preload this struct and any child objects | |
![]() |
void | SerializeItem
(
FArchive& Ar, |
Serializes a specific instance of a struct |
![]() |
void | SerializeItem
(
FStructuredArchive::FSlot Slot, |
|
![]() |
void | SetStructTrashed
(
bool bIsTrash |
Sets or unsets the trashed flag on this struct |
![]() ![]() |
bool | ShouldSerializeAtomically
(
FArchive& Ar |
Returns whether this struct should be serialized atomically. |
![]() ![]() |
UClass * | StaticClass () |
Returns a UClass object representing this class at runtime |
![]() ![]() |
EClassCastFlags | Returns the static cast flags for this class | |
![]() ![]() |
const TCHAR * | Returns the package this class belongs in | |
![]() ![]() |
void | ||
![]() ![]() |
bool | UseBinarySerialization
(
const FArchive& Ar |
Returns true if this struct should be binary serialized for the given archive |
![]() ![]() |
bool | Returns true if this struct has a native serialize function |
Overridden from UStruct
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
void | DestroyStruct
(
void* Dest, |
Destroy a struct in memory. |
![]() ![]() ![]() |
void | InitializeStruct
(
void* Dest, |
Initialize a struct over uninitialized memory. |
![]() ![]() ![]() |
bool | If true, this class has been cleaned and sanitized (trashed) and should not be used | |
![]() ![]() |
void | Creates the field/property links and gets structure ready for use at runtime |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. | |
![]() ![]() |
void | Serialize
(
FStructuredArchive::FRecord Record |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
void | operator delete
(
void* InMem |
Eliminate V1062 warning from PVS-Studio while keeping MSVC and Clang happy. |
![]() |
void * | operator new
(
const size_t InSize, |
For internal use only; use StaticConstructObject() to create new objects. |
![]() |
void * | operator new
(
const size_t InSize, |
For internal use only; use StaticConstructObject() to create new objects. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
ICppStructOps | Interface to template to manage dynamic access to C++ struct construction and destruction | |
![]() |
TAutoCppStructOps | Template for noexport classes to autoregister before main starts | |
![]() |
TCppStructOps | Template to manage dynamic access to C++ struct construction and destruction |
Typedefs
Name | Description |
---|---|
Super | Typedef for the base class (UStruct) |
ThisClass | Typedef for UScriptStruct. |
Constants
Name | Description |
---|---|
StaticClassFlags | Bitwise union of EClassFlags pertaining to this class. |