Navigation
API > API/Runtime > API/Runtime/CoreUObject
A property corresponding to UE's optional type, TOptional
| Name | FOptionalProperty |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/PropertyOptional.h |
| Include Path | #include "UObject/PropertyOptional.h" |
Syntax
class FOptionalProperty :
public FProperty ,
public FOptionalPropertyLayout
Inheritance Hierarchy
- FField → FProperty → FOptionalProperty
- FOptionalPropertyLayout → FOptionalProperty
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FOptionalProperty
(
FFieldVariant InOwner, |
UObject/PropertyOptional.h | ||
FOptionalProperty
(
FFieldVariant InOwner, |
UObject/PropertyOptional.h | ||
FOptionalProperty
(
EInternal InInernal, |
UObject/PropertyOptional.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FOptionalProperty() |
UObject/PropertyOptional.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Super | FProperty | UObject/PropertyOptional.h | |
| ThisClass | FOptionalProperty | UObject/PropertyOptional.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetValueProperty
(
FProperty* InValueProperty |
Sets the optional property's value property. | UObject/PropertyOptional.h |
Overridden from FProperty
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanSerializeFromTypeName
(
UE::FPropertyTypeName Type |
Returns true if the type of this property matches the type name. | UObject/PropertyOptional.h | |
virtual void ClearValueInternal
(
void* Data |
UObject/PropertyOptional.h | ||
virtual bool ContainsClearOnFinishDestroyInternal
(
TArray< const FStructProperty* >& EncounteredStructProps |
UObject/PropertyOptional.h | ||
virtual 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. | UObject/PropertyOptional.h | |
virtual EConvertFromTypeResult ConvertFromType
(
const FPropertyTag& Tag, |
Allows a property to implement backwards compatibility handling for tagged properties | UObject/PropertyOptional.h | |
virtual void CopyValuesInternal
(
void* Dest, |
UObject/PropertyOptional.h | ||
virtual void DestroyValueInternal
(
void* Data |
UObject/PropertyOptional.h | ||
virtual void EmitReferenceInfo
(
UE::GC::FSchemaBuilder& Schema, |
Emits tokens used by realtime garbage collection code to passed in ReferenceTokenStream. | UObject/PropertyOptional.h | |
virtual void ExportText_Internal
(
FString& ValueStr, |
UObject/PropertyOptional.h | ||
virtual void FinishDestroyInternal
(
void* Data |
UObject/PropertyOptional.h | ||
| UObject/PropertyOptional.h | |||
| Returns the text to use for exporting this property to header file. | UObject/PropertyOptional.h | ||
virtual int32 GetMinAlignment() |
UObject/PropertyOptional.h | ||
virtual uint32 GetValueTypeHashInternal
(
const void* Src |
UObject/PropertyOptional.h | ||
virtual bool HasIntrusiveUnsetOptionalState () |
Returns whether this type has a special state for an unset TOptional meaning the size TOptional |
UObject/PropertyOptional.h | |
virtual bool Identical
(
const void* A, |
Determines whether the property values are identical. | UObject/PropertyOptional.h | |
virtual const TCHAR * ImportText_Internal
(
const TCHAR* Buffer, |
UObject/PropertyOptional.h | ||
virtual void InitializeValueInternal
(
void* Data |
UObject/PropertyOptional.h | ||
virtual void InstanceSubobjects
(
void* Data, |
Creates new copies of components | UObject/PropertyOptional.h | |
virtual void LinkInternal
(
FArchive& Ar |
UObject/PropertyOptional.h | ||
virtual bool LoadTypeName
(
UE::FPropertyTypeName Type, |
Restores this property and its owned properties from the type name. | UObject/PropertyOptional.h | |
virtual bool NetSerializeItem
(
FArchive& Ar, |
UObject/PropertyOptional.h | ||
virtual void * ResolveVisitedPathInfo
(
void* Data, |
Attempt to resolve the given inner path info against this outer property to get the inner property value. | UObject/PropertyOptional.h | |
virtual bool SameType
(
const FProperty* Other |
Returns true, if Other is property of exactly the same type | UObject/PropertyOptional.h | |
virtual void SaveTypeName
(
UE::FPropertyTypeNameBuilder& Type |
Saves the type name of this property and its owned properties. | UObject/PropertyOptional.h | |
virtual void SerializeItem
(
FStructuredArchive::FSlot Slot, |
UObject/PropertyOptional.h | ||
virtual bool SupportsNetSharedSerialization() |
UObject/PropertyOptional.h | ||
virtual bool UseBinaryOrNativeSerialization
(
const FArchive& Ar |
UObject/PropertyOptional.h | ||
virtual EPropertyVisitorControlFlow Visit
(
FPropertyVisitorContext& Context, |
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. | UObject/PropertyOptional.h |
Overridden from FField
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddCppProperty
(
FProperty* Property |
UObject/PropertyOptional.h | ||
virtual void AddReferencedObjects
(
FReferenceCollector& Collector |
UObject/PropertyOptional.h | ||
virtual SIZE_T GetFieldSize() |
UObject/PropertyOptional.h | ||
| Returns an inner field by name if the field has any | UObject/PropertyOptional.h | ||
| Fills the provided array with all inner fields this field owns (recursively) | UObject/PropertyOptional.h | ||
| UObject/PropertyOptional.h | |||
virtual void PostDuplicate
(
const FField& InField |
Fixups after duplicating a Field | UObject/PropertyOptional.h | |
virtual void Serialize
(
FArchive& Ar |
Begin UObject interface: the following functions mimic UObject interface for easier transition from UProperties to FProperties. | UObject/PropertyOptional.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UE_API FField * Construct
(
const FFieldVariant& InOwner, |
UObject/PropertyOptional.h | ||
static UE_API FFieldClass * StaticClass() |
UObject/PropertyOptional.h | ||
static EClassCastFlags StaticClassCastFlags() |
UObject/PropertyOptional.h | ||
static EClassCastFlags StaticClassCastFlagsPrivate() |
UObject/PropertyOptional.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void operator delete
(
void* InMem |
UObject/PropertyOptional.h | ||
void * operator new
(
const size_t InSize, |
UObject/PropertyOptional.h | ||
void * operator new
(
const size_t InSize |
UObject/PropertyOptional.h | ||
| UObject/PropertyOptional.h | |||
FOptionalProperty & operator=
(
const FOptionalProperty& |
UObject/PropertyOptional.h |