Navigation
API > API/Plugins > API/Plugins/PCG
Description
Iterate over the full range of the keys (if Count is negative, otherwise, as many times as Count), calling the callback with values get from the accessor. ChunkSize influence the max number of values to get in one go with GetRange. Callback should have a signature: void(const T& Value, int32 Index) / void(T Value, int32 Index). Can also return a bool to know if we need to continue or not. Return false if it process nothing.
| Name | PCGMetadataElementCommon::ApplyOnAccessor |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Elements/Metadata/PCGMetadataElementCommon.h |
| Include Path | #include "Elements/Metadata/PCGMetadataElementCommon.h" |
namespace PCGMetadataElementCommon
{
template<typename T, typename Func>
bool PCGMetadataElementCommon::ApplyOnAccessor
(
const IPCGAttributeAccessorKeys & Keys,
const IPCGAttributeAccessor & Accessor,
Func && InCallback,
EPCGAttributeAccessorFlags Flags,
const int32 ChunkSize,
const int32 Count
)
}