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/SetRange
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 SetRange
&40;
TArrayView< const T > InValues,
int32 Index,
IPCGAttributeAccessorKeys & Keys,
EPCGAttributeAccessorFlags Flags
&41;
Remarks
Set a range of values to 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 fail. It is to avoid writing at the same memory place multiple times. true if the get succeeded, false otherwise
Parameters
| Name | Description |
|---|---|
| InValues | View on memory where to read values from. Its "Num" will determine how many elements we will write. |
| 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. |