![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
| COREUOBJECT_API bool PropertyAccessUtil::ArePropertiesCompatible | ( | const FProperty * | InSrcProp, |
| const FProperty * | InDestProp | ||
| ) |
Low-level function to determine if two properties are compatible with each other (for use by CopySinglePropertyValue/CopyCompletePropertyValue).
| InSrcProp | Source property being compared. |
| InDestProp | Destination property being compared. |
| COREUOBJECT_API TUniquePtr< FPropertyAccessChangeNotify > PropertyAccessUtil::BuildBasicChangeNotify | ( | const FProperty * | InProp, |
| const UObject * | InObject, | ||
| const EPropertyAccessChangeNotifyMode | InNotifyMode, | ||
| const EPropertyChangeType::Type | ChangeType | ||
| ) |
Low-level function to build the basic information needed to emit property change notifications.
| InProp | Property being modified. |
| InObject | Object being modified. |
| InNotifyMode | When to emit property change notifications. |
| COREUOBJECT_API EPropertyAccessResultFlags PropertyAccessUtil::CanGetPropertyValue | ( | const FProperty * | InProp | ) |
Low-level function for checking whether it's valid to get the value of a property.
| InProp | Property to query. |
| COREUOBJECT_API EPropertyAccessResultFlags PropertyAccessUtil::CanSetPropertyValue | ( | const FProperty * | InProp, |
| const uint64 | InReadOnlyFlags, | ||
| const bool | InOwnerIsTemplate | ||
| ) |
Low-level function for checking whether it's valid to set the value of a property.
| InProp | Property to query. |
| COREUOBJECT_API bool PropertyAccessUtil::CopyCompletePropertyValue | ( | const FProperty * | InSrcProp, |
| const void * | InSrcValue, | ||
| const FProperty * | InDestProp, | ||
| void * | InDestValue | ||
| ) |
Low-level function to copy the value from one property to another (complete property value, for each ArrayDim).
| InSrcProp | Source property being copied from. |
| InSrcValue | Source value being copied from. |
| InDestProp | Destination property being copied to. |
| InDestValue | Destination value being copied to. |
| COREUOBJECT_API bool PropertyAccessUtil::CopySinglePropertyValue | ( | const FProperty * | InSrcProp, |
| const void * | InSrcValue, | ||
| const FProperty * | InDestProp, | ||
| void * | InDestValue | ||
| ) |
Low-level function to copy the value from one property to another (single property value, ignoring ArrayDim).
| InSrcProp | Source property being copied from. |
| InSrcValue | Source value being copied from. |
| InDestProp | Destination property being copied to. |
| InDestValue | Destination value being copied to. |
| COREUOBJECT_API void PropertyAccessUtil::EmitPostChangeNotify | ( | const FPropertyAccessChangeNotify * | InChangeNotify, |
| const bool | InIdenticalValue | ||
| ) |
Low-level function called after modifying an object to notify that its value has changed.
| InChangeNotify | Information needed to emit property change notifications, or nullptr if no notifications are needed or possible. |
| InIdenticalValue | True if the value being set was identical to the current value, false otherwise. |
| COREUOBJECT_API void PropertyAccessUtil::EmitPreChangeNotify | ( | const FPropertyAccessChangeNotify * | InChangeNotify, |
| const bool | InIdenticalValue | ||
| ) |
Low-level function called before modifying an object to notify that its value is about to change.
| InChangeNotify | Information needed to emit property change notifications, or nullptr if no notifications are needed or possible. |
| InIdenticalValue | True if the value being set was identical to the current value, false otherwise. |
| COREUOBJECT_API FProperty * PropertyAccessUtil::FindPropertyByName | ( | const FName | InPropName, |
| const UStruct * | InStruct | ||
| ) |
Low-level function to find a property by its name, following redirectors if it cannot be found.
| InPropName | The name of the property to find. |
| InStruct | The struct that should contain the property. |
| COREUOBJECT_API bool PropertyAccessUtil::GetArchetypeInstancesInheritingPropertyValue | ( | const FProperty * | InObjectProp, |
| UObject * | InObject, | ||
| TArray< UObject * > & | OutArchetypeInstances | ||
| ) |
Finds all instances of an archetype object which are inheriting the given property's value from the archetype, then returns those instance UObjects.
| InObjectProp | Property to compare the value of. |
| InObject | Archetype object containing the property. |
| OutArchetypeInstances | Array to store results in. |
| COREUOBJECT_API bool PropertyAccessUtil::GetArchetypeInstancesInheritingPropertyValue_AsContainerData | ( | const FProperty * | InObjectProp, |
| UObject * | InObject, | ||
| TArray< void * > & | OutArchetypeInstContainers | ||
| ) |
Finds all instances of an archetype object which are inheriting the given property's value from the archetype, then returns the containers for the given property which is either the UObject's address or the sparse data struct.
| InObjectProp | Property to compare the value of. |
| InObject | Archetype object containing the property. |
| OutArchetypeInstContainers | Array to store results in. These are pointers to the container containing the given property value. If the property is sparse class data, these will point to the sparse data struct. |
| int64 PropertyAccessUtil::GetPropertyEnumValue | ( | const FProperty * | InProp, |
| const void * | InPropValue | ||
| ) |
| COREUOBJECT_API EPropertyAccessResultFlags PropertyAccessUtil::GetPropertyValue | ( | const FPropertyAccessGetFunc & | InGetFunc | ) |
Low-level function for getting the value of a property.
| InGetFunc | Logic for getting the value of the property. |
| COREUOBJECT_API EPropertyAccessResultFlags PropertyAccessUtil::GetPropertyValue_DirectComplete | ( | const FProperty * | InSrcProp, |
| const void * | InSrcValue, | ||
| const FProperty * | InDestProp, | ||
| void * | InDestValue | ||
| ) |
High-level function for getting the multi-element value of a property from memory.
| InSrcProp | Property to get the value of. |
| InSrcValue | The property value to copy. |
| InDestProp | Property of the value to set (must be compatible with the source property). |
| InDestValue | Instance to fill with the property value (must be a valid and constructed block of memory that is compatible with the property). |
| COREUOBJECT_API EPropertyAccessResultFlags PropertyAccessUtil::GetPropertyValue_DirectSingle | ( | const FProperty * | InSrcProp, |
| const void * | InSrcValue, | ||
| const FProperty * | InDestProp, | ||
| void * | InDestValue | ||
| ) |
High-level function for getting the single-element value of a property from memory.
| InSrcProp | Property to get the value of. |
| InSrcValue | The property value to copy. |
| InDestProp | Property of the value to set (must be compatible with the source property). |
| InDestValue | Instance to fill with the property value (must be a valid and constructed block of memory that is compatible with the property). |
| COREUOBJECT_API EPropertyAccessResultFlags PropertyAccessUtil::GetPropertyValue_InContainer | ( | const FProperty * | InContainerProp, |
| const void * | InContainerData, | ||
| const FProperty * | InDestProp, | ||
| void * | InDestValue, | ||
| const int32 | InArrayIndex | ||
| ) |
High-level function for getting the value of a property from a property container (object or struct).
| InContainerProp | Property to get the value of. |
| InContainerData | The instance data containing the property. |
| InDestProp | Property of the value to set (must be compatible with the source property). |
| InDestValue | Instance to fill with the property value (must be a valid and constructed block of memory that is compatible with the property). |
| InArrayIndex | For fixed-size array properties denotes which index of the array to get, or INDEX_NONE to get the entire property. |
| COREUOBJECT_API EPropertyAccessResultFlags PropertyAccessUtil::GetPropertyValue_Object | ( | const FProperty * | InObjectProp, |
| const UObject * | InObject, | ||
| const FProperty * | InDestProp, | ||
| void * | InDestValue, | ||
| const int32 | InArrayIndex | ||
| ) |
High-level function for getting the value of a property from an object.
| InObjectProp | Property to get the value of. |
| InObject | Object containing the property. |
| InDestProp | Property of the value to set (must be compatible with the source property). |
| InDestValue | Instance to fill with the property value (must be a valid and constructed block of memory that is compatible with the property). |
| InArrayIndex | For fixed-size array properties denotes which index of the array to get, or INDEX_NONE to get the entire property. |
| COREUOBJECT_API bool PropertyAccessUtil::ImportDefaultPropertyValue | ( | const FProperty * | InProp, |
| void * | InPropValue, | ||
| const FString & | InDefaultValue, | ||
| FOutputDevice * | ErrorText = (FOutputDevice *) GWarn |
||
| ) |
Low-level function to import a default value to the given property.
| InProp | The property to import the default value for. |
| InPropValue | The destination location to receive the imported value. |
| InDefaultValue | The default value to import. |
| COREUOBJECT_API bool PropertyAccessUtil::IsCompletePropertyIdentical | ( | const FProperty * | InSrcProp, |
| const void * | InSrcValue, | ||
| const FProperty * | InDestProp, | ||
| const void * | InDestValue | ||
| ) |
Low-level function to determine if two properties have identical values (complete property value, for each ArrayDim).
| InSrcProp | Source property being compared. |
| InSrcValue | Source value being compared. |
| InDestProp | Destination property being compared. |
| InDestValue | Destination value being compared. |
| COREUOBJECT_API bool PropertyAccessUtil::IsObjectTemplate | ( | const UObject * | InObject | ) |
Low-level function for checking whether the given object instance is considered a template for property access.
| InObject | Object to query. |
| COREUOBJECT_API bool PropertyAccessUtil::IsSinglePropertyIdentical | ( | const FProperty * | InSrcProp, |
| const void * | InSrcValue, | ||
| const FProperty * | InDestProp, | ||
| const void * | InDestValue | ||
| ) |
Low-level function to determine if two properties have identical values (single property value, ignoring ArrayDim).
| InSrcProp | Source property being compared. |
| InSrcValue | Source value being compared. |
| InDestProp | Destination property being compared. |
| InDestValue | Destination value being compared. |
| bool PropertyAccessUtil::SetPropertyEnumValue | ( | const FProperty * | InProp, |
| void * | InPropValue, | ||
| const int64 | InEnumValue | ||
| ) |
| COREUOBJECT_API EPropertyAccessResultFlags PropertyAccessUtil::SetPropertyValue | ( | const FPropertyAccessSetFunc & | InSetFunc, |
| const FPropertyAccessBuildChangeNotifyFunc & | InBuildChangeNotifyFunc | ||
| ) |
Low-level function for setting the value of a property.
| InSetFunc | Logic for setting the value of the property (should call EmitPreChangeNotify and EmitPostChangeNotify using the given FPropertyAccessChangeNotify instance). |
| InBuildChangeNotifyFunc | Logic for building the information needed to emit property change notifications when setting a property value (can return nullptr if no notifications are needed or possible). |
| COREUOBJECT_API EPropertyAccessResultFlags PropertyAccessUtil::SetPropertyValue_DirectComplete | ( | const FProperty * | InSrcProp, |
| const void * | InSrcValue, | ||
| const FProperty * | InDestProp, | ||
| void * | InDestValue, | ||
| const TArray< void * > & | InArchetypeInstDestValues, | ||
| const uint64 | InReadOnlyFlags, | ||
| const bool | InOwnerIsTemplate, | ||
| const FPropertyAccessBuildChangeNotifyFunc & | InBuildChangeNotifyFunc | ||
| ) |
High-level function for setting the multi-element value of a property in memory.
| InSrcProp | Property to set the value of. |
| InSrcValue | The value to set on the property. |
| InDestProp | Property to get the value from (must be compatible with the source property). |
| InDestValue | Instance to fill with the property value (must be a valid and constructed block of memory that is compatible with the property). |
| InArchetypeInstDestValues | When the object is an archetype: direct value addresses of instances of the archetype to evaluate. Those with currently the same value as archetype will also have their property updates. |
| InReadOnlyFlags | Flags controlling which properties are considered read-only. |
| InOwnerIsTemplate | True if the owner object is considered a template (see IsObjectTemplate). |
| InBuildChangeNotifyFunc | Logic for building the information needed to emit property change notifications when setting a property value (can return nullptr if no notifications are needed or possible). |
| COREUOBJECT_API EPropertyAccessResultFlags PropertyAccessUtil::SetPropertyValue_DirectSingle | ( | const FProperty * | InSrcProp, |
| const void * | InSrcValue, | ||
| const FProperty * | InDestProp, | ||
| void * | InDestValue, | ||
| const TArray< void * > & | InArchetypeInstDestValues, | ||
| const uint64 | InReadOnlyFlags, | ||
| const bool | InOwnerIsTemplate, | ||
| const FPropertyAccessBuildChangeNotifyFunc & | InBuildChangeNotifyFunc | ||
| ) |
High-level function for setting the single-element value of a property in memory.
| InSrcProp | Property to set the value of. |
| InSrcValue | The value to set on the property. |
| InDestProp | Property to get the value from (must be compatible with the source property). |
| InDestValue | Instance to fill with the property value (must be a valid and constructed block of memory that is compatible with the property). |
| InArchetypeInstDestValues | When the object is an archetype: direct value addresses of instances of the archetype to evaluate. Those with currently the same value as archetype will also have their property updates. |
| InReadOnlyFlags | Flags controlling which properties are considered read-only. |
| InOwnerIsTemplate | True if the owner object is considered a template (see IsObjectTemplate). |
| InBuildChangeNotifyFunc | Logic for building the information needed to emit property change notifications when setting a property value (can return nullptr if no notifications are needed or possible). |
| COREUOBJECT_API EPropertyAccessResultFlags PropertyAccessUtil::SetPropertyValue_InContainer | ( | const FProperty * | InContainerProp, |
| void * | InContainerData, | ||
| const TArray< void * > & | InArchetypeInstContainerData, | ||
| const FProperty * | InSrcProp, | ||
| const void * | InSrcValue, | ||
| const int32 | InArrayIndex, | ||
| const uint64 | InReadOnlyFlags, | ||
| const bool | InOwnerIsTemplate, | ||
| const FPropertyAccessBuildChangeNotifyFunc & | InBuildChangeNotifyFunc | ||
| ) |
High-level function for setting the value of a property on a property container (object or struct).
| InContainerProp | Property to set the value of. |
| InContainerData | The instance data containing the property. |
| InArchetypeInstContainerData | When the object is an archetype: container addresses of instances of the archetype to evaluate. Those with currently the same value as archetype will also have their property updates. |
| InSrcProp | Property of the value to set (must be compatible with the dest property). |
| InSrcValue | The value to set on the property. |
| InArrayIndex | For fixed-size array properties denotes which index of the array to set, or INDEX_NONE to set the entire property. |
| InReadOnlyFlags | Flags controlling which properties are considered read-only. |
| InOwnerIsTemplate | True if the owner object is considered a template (see IsObjectTemplate). |
| InBuildChangeNotifyFunc | Logic for building the information needed to emit property change notifications when setting a property value (can return nullptr if no notifications are needed or possible). |
| COREUOBJECT_API EPropertyAccessResultFlags PropertyAccessUtil::SetPropertyValue_Object | ( | const FProperty * | InObjectProp, |
| UObject * | InObject, | ||
| const FProperty * | InSrcProp, | ||
| const void * | InSrcValue, | ||
| const int32 | InArrayIndex, | ||
| const uint64 | InReadOnlyFlags, | ||
| const EPropertyAccessChangeNotifyMode | InNotifyMode | ||
| ) |
High-level function for setting the value of a property on an object. If the object is an archetype, value will be propagated to instances that haven't modified the value.
| InObjectProp | Property to set the value of. |
| InObject | Object containing the property. |
| InSrcProp | Property of the value to set (must be compatible with the dest property). |
| InSrcValue | The value to set on the property. |
| InArrayIndex | For fixed-size array properties denotes which index of the array to set, or INDEX_NONE to set the entire property. |
| InReadOnlyFlags | Flags controlling which properties are considered read-only. |
| InNotifyMode | When to emit property change notifications. |