Navigation
API > API/Plugins > API/Plugins/UAF
Attribute value transformer to interpolate values Make sure to also implement variations for Overwrite and Accumulate
| Name | FInterpolate |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAF/Source/UAF/Public/UAF/ValueRuntime/Transformers/Interpolate.h |
| Include Path | #include "UAF/ValueRuntime/Transformers/Interpolate.h" |
Syntax
struct FInterpolate : public UE::UAF::FValueTransformer
Inheritance Hierarchy
- FValueTransformer → FInterpolate
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 Note that the input/output buffers can be the same buffer 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/Interpolate.h |
| FTransformUnboundValueMapFunc | void(*)(const FUnboundValueMap *MapA, const FUnboundValueMap *MapB, float WeightB, FUnboundValueMap *&OutputMap, FReallocFun OutputAllocator) | UAF/ValueRuntime/Transformers/Interpolate.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| TransformerName | FName | UAF/ValueRuntime/Transformers/Interpolate.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void Apply
(
const FValueTransformerMapPtr& TransformerMap, |
Interpolate attribute values Output = lerp(A, B, WeightB) Output = (A * (1.0 - WeightB)) + (B * WeightB) This function supports outputting to either input | UAF/ValueRuntime/Transformers/Interpolate.h | |
static void Apply
(
const FValueTransformerMapPtr& TransformerMap, |
Interpolate attribute values If a weight isn't specified, the default weight will be used Output = lerp(A, B, HasValueWeightB ? ValueWeightB : DefaultWeightB) This function supports outputting to either input | UAF/ValueRuntime/Transformers/Interpolate.h |