Navigation
API > API/Plugins > API/Plugins/PCG
Description
Set a property value given by a callback function. Func signature : bool(auto&) Will have property value in first arg, and boolean return if we should set the property after. Returns true if the set succeeded
| Name | PCGPropertyHelpers::SetPropertyValueFromCallback |
| 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>
bool PCGPropertyHelpers::SetPropertyValueFromCallback
(
ObjectType * InObject,
const FProperty * InProperty,
Func InFunc
)
}
Forward the result of the callback
Parameters
| Name | Remarks |
|---|---|
| InObject | The object to write to |
| InProperty | The property to look for |
| InFunc | Callback function that take a reference to a templated type. It will set the property with this value. returns true if we should set, false otherwise. |