Navigation
API > API/Plugins > API/Plugins/PCG
Description
Get a property value and pass it as a parameter to a callback function. Func signature : auto(auto&&)
| Name | PCGPropertyHelpers::GetPropertyValueWithCallback |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGPropertyHelpers.h |
| Include Path | #include "Helpers/PCGPropertyHelpers.h" |
namespace PCGPropertyHelpers
{
template<typename ObjectType, typename Func>
decltype(auto) PCGPropertyHelpers::GetPropertyValueWithCallback
(
const ObjectType * InObject,
const FProperty * InProperty,
Func InFunc
)
}
Forward the result of the callback.
Parameters
| Name | Remarks |
|---|---|
| InObject | The object to read from |
| InProperty | The property to look for |
| InFunc | Callback function that can return anything, and should have a single templated argument, where the property will be. |