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/Set
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/Accessors/IPCGAttributeAccessor.h |
| Include | #include "Metadata/Accessors/IPCGAttributeAccessor.h" |
template<typename T>
bool Set
(
const T & InValue,
int32 Index,
IPCGAttributeAccessorKeys & Keys,
EPCGAttributeAccessorFlags Flags
)
Remarks
Set a value to the accessor for a given type. Not threadsafe for all accessors. If Index is greater than the number of keys, it will fail (return false). true if the set succeeded, false otherwise
Parameters
| Name | Description |
|---|---|
| InValue | the value to write |
| Index | The index to look for in the keys |
| Keys | Identification to know how to identify the value. |
| Flags | Optional flag to allow for specific operations. Cf EPCGAttributeAccessorFlags. |