Navigation
API > API/Plugins > API/Plugins/UAFAnimGraph
It will generate an output using the base trait input keyframe and the selected alpha blend type (float, bool or curve) Requires a base trait with a single input and PostEvaluate task creation (currently used to blend Control Rig Trait)
If alpha type is Float or Bool Depending on the weight value
- 0 (not relevant) : The input "as is" will be the output (passthrough). No call to PostEvaluate on the base will be performed.
- 1 (full weight) : The output of the base will be used as the output without blending by calling base PostEvaluate
- Any other relevant weight : Input will be duplicated (with a task) in Post Evaluate The base Post Evaluate will be called to execute on the copy (normally will create a task) Both keyframes (original and copy with base modifications) will be blended using a two keyframes blend task, passing the calculated alpha blend weight
If alpha type is Curve The curve value is not known until we are in the task (because we need the keyframe to extract the curve value) Currently, the process will generate a full blend : A task will added to duplicate input keyframe at PostEvaluate Base PostEvaluate will be called to allow task creation Resulting keyframes will be blended with a two keyframes blend task, passing the curve data so the alpha can be obtained If we try to get current alpha value of a Curve blend type, the returned value will be 1
| Name | FPassthroughBlendTraitSharedData |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAFAnimGraph/Source/UAFAnimGraph/Public/Traits/PassthroughBlendTrait.h |
| Include Path | #include "Traits/PassthroughBlendTrait.h" |
Syntax
USTRUCT (Meta=(DisplayName="Passthrough Blend", ShowTooltip=true))
struct FPassthroughBlendTraitSharedData : public FAnimNextTraitSharedData
Inheritance Hierarchy
- FAnimNextTraitSharedData → FPassthroughBlendTraitSharedData
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Self | FPassthroughBlendTraitSharedData | Traits/PassthroughBlendTrait.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Alpha | float | Alpha value handler | Traits/PassthroughBlendTrait.h |
|
| AlphaBoolBlend | FInputAlphaBoolBlend | Traits/PassthroughBlendTrait.h |
|
|
| AlphaCurveName | FName | Traits/PassthroughBlendTrait.h |
|
|
| AlphaInputType | EAnimAlphaInputType | Traits/PassthroughBlendTrait.h |
|
|
| AlphaScaleBias | FInputScaleBias | Traits/PassthroughBlendTrait.h |
|
|
| AlphaScaleBiasClamp | FInputScaleBiasClamp | Traits/PassthroughBlendTrait.h |
|
|
| bAlphaBoolEnabled | bool | Traits/PassthroughBlendTrait.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const decltype(Alpha) & GetAlpha
(
const UE::UAF::FTraitBinding& Binding |
Traits/PassthroughBlendTrait.h | ||
const decltype(AlphaBoolBlend) & GetAlphaBoolBlend
(
const UE::UAF::FTraitBinding& Binding |
Traits/PassthroughBlendTrait.h | ||
const decltype(AlphaCurveName) & GetAlphaCurveName
(
const UE::UAF::FTraitBinding& Binding |
Traits/PassthroughBlendTrait.h | ||
const decltype(AlphaInputType) & GetAlphaInputType
(
const UE::UAF::FTraitBinding& Binding |
Traits/PassthroughBlendTrait.h | ||
const decltype(bAlphaBoolEnabled) & GetbAlphaBoolEnabled
(
const UE::UAF::FTraitBinding& Binding |
Traits/PassthroughBlendTrait.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void ConstructLatentProperties
(
const UE::UAF::FTraitBinding& Binding |
Traits/PassthroughBlendTrait.h | ||
static void DestructLatentProperties
(
const UE::UAF::FTraitBinding& Binding |
Traits/PassthroughBlendTrait.h | ||
static int32 GetLatentPropertyIndex
(
const size_t LatentPropertyOffset |
Traits/PassthroughBlendTrait.h |