Navigation
API > API/Plugins > API/Plugins/UAFAnimGraph
This interface exposes discrete blend related information.
Discrete blends may snap or pop from one blend source to another, they may be non-continuous.
| Name | IDiscreteBlend |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAFAnimGraph/Source/UAFAnimGraph/Public/TraitInterfaces/IDiscreteBlend.h |
| Include Path | #include "TraitInterfaces/IDiscreteBlend.h" |
Syntax
struct IDiscreteBlend : public UE::UAF::ITraitInterface
Derived Classes
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| InterfaceUID | UE::UAF::FTraitInterfaceUID | Globally unique UID for this interface | TraitInterfaces/IDiscreteBlend.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 GetBlendDestinationChildIndex
(
FExecutionContext& Context, |
Returns the blend destination child index (aka the active child index) Returns INDEX_NONE if no child is active | TraitInterfaces/IDiscreteBlend.h | |
virtual const FAlphaBlend * GetBlendState
(
FExecutionContext& Context, |
Returns the blend alpha for the specified child Returns nullptr if the child index is invalid Allows additive traits to query the internal state of the base trait | TraitInterfaces/IDiscreteBlend.h | |
virtual float GetBlendWeight
(
FExecutionContext& Context, |
Returns the blend weight for the specified child Multiple children can have non-zero weight but their sum must be 1.0 Returns -1.0 if the child index is invalid | TraitInterfaces/IDiscreteBlend.h | |
virtual void OnBlendInitiated
(
FExecutionContext& Context, |
Called when the blend for specified child is initiated. | TraitInterfaces/IDiscreteBlend.h | |
virtual void OnBlendTerminated
(
FExecutionContext& Context, |
Called when the blend for specified child terminates. | TraitInterfaces/IDiscreteBlend.h | |
virtual void OnBlendTransition
(
FExecutionContext& Context, |
Called when a blend transition between children occurs OldChildIndex can be INDEX_NONE if there was no previously active child NewChildIndex can be larger than the current number of known children to support a dynamic number of children at runtime When this occurs, the number of children increments by one The number of children never shrinks | TraitInterfaces/IDiscreteBlend.h |
Overridden from ITraitInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText & GetDisplayName() |
Human readable interface names, in long and short format. | TraitInterfaces/IDiscreteBlend.h | |
virtual const FText & GetDisplayShortName() |
Human readable interface names, in short format (ideally 3 or 4 letters, due to space restrictions in the editor) | TraitInterfaces/IDiscreteBlend.h | |
virtual UE::UAF::FTraitInterfaceUID GetInterfaceUID() |
TraitInterfaces/IDiscreteBlend.h |