Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Helpers
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/Helpers/PCGPropertyHelpers.h |
| Include | #include "Helpers/PCGPropertyHelpers.h" |
namespace PCGPropertyHelpers
{
template<typename ObjectType, typename Func>
bool PCGPropertyHelpers&58;&58;SetPropertyValueFromCallback
&40;
ObjectType &42; InObject,
const FProperty &42; InProperty,
Func InFunc
&41;
}
Remarks
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 Forward the result of the callback
Parameters
| Name | Description |
|---|---|
| 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. |