Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements > API/Plugins/PCG/Elements/Metadata
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/Elements/Metadata/PCGMetadataElementCommon.h |
| Include | #include "Elements/Metadata/PCGMetadataElementCommon.h" |
namespace PCGMetadataElementCommon
{
template<typename T, typename Func>
bool PCGMetadataElementCommon&58;&58;ApplyOnAccessor
&40;
const IPCGAttributeAccessorKeys & Keys,
const IPCGAttributeAccessor & Accessor,
Func && Callback,
const int32 ChunkSize
&41;
}
Remarks
Iterate over the full range of the keys, 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&, int32) Return false if it process nothing.