Navigation
API > API/Plugins > API/Plugins/PCG
Description
Utility function to create the accessor and keys and write all the values for all the keys coming from InValues. Also, automatically resolve the selector for @Last.
| Name | PCGAttributeAccessorHelpers::WriteAllValues |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/Accessors/PCGAttributeAccessorHelpers.h |
| Include Path | #include "Metadata/Accessors/PCGAttributeAccessorHelpers.h" |
namespace PCGAttributeAccessorHelpers
{
template<typename T>
bool PCGAttributeAccessorHelpers::WriteAllValues
(
UPCGData * OutputData,
const FPCGAttributePropertyOutputSelector & OutputSelector,
TArrayView < const T > InValues,
const FPCGAttributePropertyInputSelector * SourceSelector,
FPCGContext * Context,
EPCGAttributeAccessorFlags SetFlags
)
}
true if it succeeded.
Parameters
| Name | Remarks |
|---|---|
| OutputData | Input data to extract the value from. Will also be used to resolve @Source on the selector. |
| OutputSelector | Selector to know which value to write to. Will be resolved if it is @Source. |
| InValues | Input view where the values will be read from. InValues MUST be the same size as the keys that will be created by CreateKeys on the OutputData. |
| SourceSelector | Optional source selector for @Source resolve. Can be null. |
| Context | Optional context for logging. Can be null. |
| SetFlags | Flags for the set accessor. By default, is broadcast and constructible. |