![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Classes | |
| struct | FInternalArrayOperationResolver |
| struct | FInternalStringGetterResolver |
| struct | FInternalStringSetterResolver |
A collection of utility functions operating on cached property paths
| PROPERTYPATH_API bool PropertyPathHelpers::CopyPropertyValue | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InDestPropertyPath, | ||
| const FCachedPropertyPath & | InSrcPropertyPath | ||
| ) |
Copy values between two property paths in the same container.
| InContainer | The container object to resolve the property path against |
| InDestPropertyPath | The property path to copy to |
| InSrcPropertyPath | The property path to copy from |
| PROPERTYPATH_API bool PropertyPathHelpers::CopyPropertyValueFast | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InDestPropertyPath, | ||
| const FCachedPropertyPath & | InSrcPropertyPath | ||
| ) |
Copy values between two property paths in the same container. Fast, unsafe version. Using this requires that the two paths are pre-resolved from either a previous call to CopyPropertyValue (or GetPropertyValue/SetPropertyValue) or FCachedPropertyPath::Resolve().
| InContainer | The container object to resolve the property path against |
| InDestPropertyPath | The property path to copy to |
| InSrcPropertyPath | The property path to copy from |
| PROPERTYPATH_API void PropertyPathHelpers::FindFieldNameAndArrayIndex | ( | int32 | InCount, |
| const TCHAR * | InString, | ||
| int32 & | OutCount, | ||
| const TCHAR ** | OutPropertyName, | ||
| int32 & | OutArrayIndex | ||
| ) |
Parses a property path segment name of the form PropertyName[OptionalArrayIndex]
| InCount | The length of the input string |
| InString | The Input string to parse |
| OutCount | The length of the resulting property name string |
| OutPropertyName | The string storing the name of the property |
| OutArrayIndex | The resulting array index, if any |
| PROPERTYPATH_API bool PropertyPathHelpers::GetPropertyValueAsString | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InPropertyPath, | ||
| FString & | OutValue, | ||
| uint32 | PPF_Flags = PPF_None |
||
| ) |
Get the value represented by this property path as a string
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path |
| OutValue | The string to write the properties value to |
| PROPERTYPATH_API bool PropertyPathHelpers::GetPropertyValueAsString | ( | UObject * | InContainer, |
| const FString & | InPropertyPath, | ||
| FString & | OutValue, | ||
| FProperty *& | OutProperty, | ||
| uint32 | PPF_Flags = PPF_None |
||
| ) |
Get the value represented by this property path as a string
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path string |
| OutValue | The string to write the properties value to |
| OutProperty | The leaf property that the path resolved to |
| PROPERTYPATH_API bool PropertyPathHelpers::GetPropertyValueAsString | ( | UObject * | InContainer, |
| const FString & | InPropertyPath, | ||
| FString & | OutValue, | ||
| uint32 | PPF_Flags = PPF_None |
||
| ) |
Get the value represented by this property path as a string
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path string |
| OutValue | The string to write the properties value to |
| PROPERTYPATH_API bool PropertyPathHelpers::GetPropertyValueAsString | ( | void * | InContainer, |
| UStruct * | InStruct, | ||
| const FCachedPropertyPath & | InPropertyPath, | ||
| FString & | OutValue, | ||
| uint32 | PPF_Flags = PPF_None |
||
| ) |
Get the value represented by this property path as a string
| InContainer | A pointer to the container structure to resolve the property path against |
| InStruct | The struct type that InContainer points to |
| InPropertyPath | The property path |
| OutValue | The string to write the properties value to |
| PROPERTYPATH_API bool PropertyPathHelpers::GetPropertyValueAsString | ( | void * | InContainer, |
| UStruct * | InStruct, | ||
| const FString & | InPropertyPath, | ||
| FString & | OutValue, | ||
| FProperty *& | OutProperty, | ||
| uint32 | PPF_Flags = PPF_None |
||
| ) |
Get the value represented by this property path as a string
| InContainer | A pointer to the container structure to resolve the property path against |
| InStruct | The struct type that InContainer points to |
| InPropertyPath | The property path string |
| OutValue | The string to write the properties value to |
| OutProperty | The leaf property that the path resolved to |
| PROPERTYPATH_API bool PropertyPathHelpers::GetPropertyValueAsString | ( | void * | InContainer, |
| UStruct * | InStruct, | ||
| const FString & | InPropertyPath, | ||
| FString & | OutValue, | ||
| uint32 | PPF_Flags = PPF_None |
||
| ) |
Get the value represented by this property path as a string
| InContainer | A pointer to the container structure to resolve the property path against |
| InStruct | The struct type that InContainer points to |
| InPropertyPath | The property path string |
| OutValue | The string to write the properties value to |
| PROPERTYPATH_API bool PropertyPathHelpers::PerformArrayOperation | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InPropertyPath, | ||
| TFunctionRef< bool(FScriptArrayHelper &, int32)> | InOperation | ||
| ) |
Perform the specified operation on the array referenced by the property path
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path |
| InOperation | The operation to perform. The function will receive a script array helper and an index (if the path specified one). |
| PROPERTYPATH_API bool PropertyPathHelpers::PerformArrayOperation | ( | UObject * | InContainer, |
| const FString & | InPropertyPath, | ||
| TFunctionRef< bool(FScriptArrayHelper &, int32)> | InOperation | ||
| ) |
Perform the specified operation on the array referenced by the property path
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path string |
| InOperation | The operation to perform. The function will receive a script array helper and an index (if the path specified one). |
| PROPERTYPATH_API bool PropertyPathHelpers::SetPropertyValue | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InPropertyPath, | ||
| const UScriptStruct * | InScriptStruct, | ||
| const uint8 * | InValue | ||
| ) |
Set the value and the leaf property represented by this property path If the cached property path has a cached address it will use that as a 'fast path' instead of iterating the path. This has safety implications depending on the form of the path, so paths that are resolved over object boundaries or dynamic arrays will always use the slow path for safety.
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path |
| InScriptStruct | The struct type to set |
| InValue | A pointer to the desired value for the given struct type |
| PROPERTYPATH_API bool PropertyPathHelpers::SetPropertyValue | ( | UObject * | InContainer, |
| const FString & | InPropertyPath, | ||
| const UScriptStruct * | InScriptStruct, | ||
| const uint8 * | InValue | ||
| ) |
Set the value and the leaf property represented by this property path If the cached property path has a cached address it will use that as a 'fast path' instead of iterating the path. This has safety implications depending on the form of the path, so paths that are resolved over object boundaries or dynamic arrays will always use the slow path for safety.
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path string |
| InScriptStruct | The struct type to set |
| InValue | A pointer to the desired value for the given struct type |
| PROPERTYPATH_API bool PropertyPathHelpers::SetPropertyValueFromString | ( | UObject * | InContainer, |
| const FCachedPropertyPath & | InPropertyPath, | ||
| const FString & | InValue, | ||
| uint32 | PPF_Flags = PPF_None |
||
| ) |
Set the value represented by this property path from a string
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path |
| InValue | The string to read the properties value from |
| PROPERTYPATH_API bool PropertyPathHelpers::SetPropertyValueFromString | ( | UObject * | InContainer, |
| const FString & | InPropertyPath, | ||
| const FString & | InValue, | ||
| uint32 | PPF_Flags = PPF_None |
||
| ) |
Set the value represented by this property path from a string
| InContainer | The container object to resolve the property path against |
| InPropertyPath | The property path string |
| InValue | The string to read the properties value from |
| PROPERTYPATH_API bool PropertyPathHelpers::SetPropertyValueFromString | ( | void * | InContainer, |
| UStruct * | InStruct, | ||
| const FCachedPropertyPath & | InPropertyPath, | ||
| const FString & | InValue, | ||
| uint32 | PPF_Flags = PPF_None |
||
| ) |
Set the value represented by this property path from a string
| InContainer | A pointer to the container structure to resolve the property path against |
| InStruct | The struct type that InContainer points to |
| InPropertyPath | The property path |
| InValue | The string to read the properties value from |
| PROPERTYPATH_API bool PropertyPathHelpers::SetPropertyValueFromString | ( | void * | InContainer, |
| UStruct * | InStruct, | ||
| const FString & | InPropertyPath, | ||
| const FString & | InValue, | ||
| uint32 | PPF_Flags = PPF_None |
||
| ) |
Set the value represented by this property path from a string
| InContainer | A pointer to the container structure to resolve the property path against |
| InStruct | The struct type that InContainer points to |
| InPropertyPath | The property path string |
| InValue | The string to read the properties value from |