Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Metadata > API/Plugins/PCG/Metadata/Accessors > API/Plugins/PCG/Metadata/Accessors/IPCGAttributeAccessor > API/Plugins/PCG/Metadata/Accessors/IPCGAttributeAccessor/GetRange
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/Metadata/Accessors/IPCGAttributeAccessor.h |
| Include | #include "Metadata/Accessors/IPCGAttributeAccessor.h" |
template<typename T>
bool GetRange
&40;
TArrayView< T > OutValues,
int32 Index,
const IPCGAttributeAccessorKeys & Keys,
EPCGAttributeAccessorFlags Flags
&41; const
Remarks
Get a range of values from the accessor for a given type. Not threadsafe for all accessors. If the number of elements asked is greater that the number of keys, it will wrap around. true if the get succeeded, false otherwise
Parameters
| Name | Description |
|---|---|
| OutValues | View on memory where to write values to. Its "Num" will determine how many elements we will read. |
| Index | The index to start looking for in the keys |
| Keys | Identification to know how to retrieve the value |
| Flags | Optional flag to allow for specific operations. Cf EPCGAttributeAccessorFlags. |