Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
Inheritance Hierarchy
- FProperty
- FOptionalPropertyLayout
- FOptionalProperty
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/PropertyOptional.h |
| Include | #include "UObject/PropertyOptional.h" |
Syntax
class FOptionalProperty :
public FProperty ,
public FOptionalPropertyLayout
Remarks
A property corresponding to UE's optional type, TOptional
Constructors
| Type | Name | Description | |
|---|---|---|---|
FOptionalProperty
(
EInternal InInernal, |
|||
FOptionalProperty
(
FFieldVariant InOwner, |
|||
FOptionalProperty
(
FFieldVariant InOwner, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FField * | Construct
(
const FFieldVariant& InOwner, |
||
| void | SetValueProperty
(
FProperty* InValueProperty |
Sets the optional property's value property. | |
| FFieldClass * | StaticClass () |
||
| uint64 | |||
| uint64 |
Overridden from FProperty
| Type | Name | Description | |
|---|---|---|---|
| bool | Returns true if the type of this property matches the type name. | ||
| void | ClearValueInternal
(
void* Data |
||
| bool | ContainsClearOnFinishDestroyInternal
(
TArray< const FStructProperty* >& EncounteredStructProps |
||
| bool | ContainsObjectReference
(
TArray< const FStructProperty* >& EncounteredStructProps, |
Returns true if this property, or in the case of e.g. array or struct properties any sub- property, contains a UObject reference. | |
| EConvertFromTypeResult | ConvertFromType
(
const FPropertyTag& Tag, |
Allows a property to implement backwards compatibility handling for tagged properties | |
| void | CopyValuesInternal
(
void* Dest, |
||
| void | DestroyValueInternal
(
void* Data |
||
| void | EmitReferenceInfo
(
UE::GC::FSchemaBuilder& Schema, |
Emits tokens used by realtime garbage collection code to passed in ReferenceTokenStream. | |
| void | ExportText_Internal
(
FString& ValueStr, |
||
| void | FinishDestroyInternal
(
void* Data |
||
| FString | GetCPPMacroType
(
FString& ExtendedTypeText |
||
| FString | GetCPPType
(
FString* ExtendedTypeText, |
Returns the text to use for exporting this property to header file. | |
| FString | |||
| int32 | |||
| uint32 | GetValueTypeHashInternal
(
const void* Src |
||
| bool | Returns whether this type has a special state for an unset TOptional meaning the size TOptional |
||
| bool | Determines whether the property values are identical. | ||
| const TCHAR * | ImportText_Internal
(
const TCHAR* Buffer, |
||
| void | InitializeValueInternal
(
void* Data |
||
| void | InstanceSubobjects
(
void* Data, |
Creates new copies of components | |
| void | LinkInternal
(
FArchive& Ar |
||
| bool | LoadTypeName
(
UE::FPropertyTypeName Type, |
Restores this property and its owned properties from the type name. | |
| bool | NetSerializeItem
(
FArchive& Ar, |
||
| void * | ResolveVisitedPathInfo
(
void* Data, |
Attempt to resolve the given inner path info against this outer property to get the inner property value. | |
| bool | Returns true, if Other is property of exactly the same type | ||
| void | SaveTypeName
(
UE::FPropertyTypeNameBuilder& Type |
Saves the type name of this property and its owned properties. | |
| void | SerializeItem
(
FStructuredArchive::FSlot Slot, |
||
| bool | |||
| bool | UseBinaryOrNativeSerialization
(
const FArchive& Ar |
||
| EPropertyVisitorControlFlow | Visit
(
FPropertyVisitorPath& Path, |
Visits this property and allows recursion into the inner properties This method allows callers to visit inner properties without knowing about its container type as opposed to TPropertyIterator. |
Overridden from FField
| Type | Name | Description | |
|---|---|---|---|
| void | AddCppProperty
(
FProperty* Property |
||
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
||
| SIZE_T | GetFieldSize () |
||
| FField * | GetInnerFieldByName
(
const FName& InName |
Returns an inner field by name if the field has any | |
| void | GetInnerFields
(
TArray< FField* >& OutFields |
Fills the provided array with all inner fields this field owns (recursively) | |
| void | GetPreloadDependencies
(
TArray< UObject* >& OutDeps |
||
| void | PostDuplicate
(
const FField& InField |
Fixups after duplicating a Field | |
| void | Begin UObject interface: the following functions mimic UObject interface for easier transition from UProperties to FProperties. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| void | operator delete
(
void* InMem |
||
| void * | operator new
(
const size_t InSize |
||
| void * | operator new
(
const size_t InSize, |