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>
decltype(auto) PCGPropertyHelpers&58;&58;GetPropertyValueWithCallback
&40;
const ObjectType &42; InObject,
const FProperty &42; InProperty,
Func InFunc
&41;
}
Remarks
Get a property value and pass it as a parameter to a callback function. Forward the result of the callback.
Parameters
| Name | Description |
|---|---|
| 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. |