Navigation
API > API/Plugins > API/Plugins/UAF
Attribute value transformer to accumulate values Accumulate is the repeating step within an N-step interpolation: Overwrite, Accumulate0, Accumulate1, ... Make sure to also implement variations for Overwrite and Interpolate
| Name | FAccumulate |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAF/Source/UAF/Public/UAF/ValueRuntime/Transformers/Accumulate.h |
| Include Path | #include "UAF/ValueRuntime/Transformers/Accumulate.h" |
Syntax
struct FAccumulate : public UE::UAF::FValueTransformer
Inheritance Hierarchy
- FValueTransformer → FAccumulate
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FTransformBoundValueMapFunc | void(*)(const FBoundValueMap *MapA, const FBoundValueMap *MapB, const FBoundValueMap *PerValueWeightMapB, float DefaultWeightB, FBoundValueMap *&OutputMap, FReallocFun OutputAllocator) | If the output buffer is nullptr, an allocator is provided and the implementation is responsible for allocating the output buffer and returning it Per-value map is optional, when not present, the default weight should be used Unbound values do not support per-value weights | UAF/ValueRuntime/Transformers/Accumulate.h |
| FTransformUnboundValueMapFunc | void(*)(const FUnboundValueMap *MapA, const FUnboundValueMap *MapB, float WeightB, FUnboundValueMap *&OutputMap, FReallocFun OutputAllocator) | UAF/ValueRuntime/Transformers/Accumulate.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| TransformerName | FName | UAF/ValueRuntime/Transformers/Accumulate.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void Apply
(
const FValueTransformerMapPtr& TransformerMap, |
Accumulate attribute values Output = A + (B * WeightB) This function supports outputting to either input | UAF/ValueRuntime/Transformers/Accumulate.h | |
static void Apply
(
const FValueTransformerMapPtr& TransformerMap, |
Accumulate attribute values If a weight isn't specified, the default weight will be used Output = A + (B * (HasValueWeightB ? ValueWeightB : DefaultWeightB)) This function supports outputting to either input | UAF/ValueRuntime/Transformers/Accumulate.h |