Navigation
API > API/Plugins > API/Plugins/AnimNextAnimGraph > API/Plugins/AnimNextAnimGraph/TraitInterfaces
Inheritance Hierarchy
- ITraitInterface
- IDiscreteBlend
References
| Module | AnimNextAnimGraph |
| Header | /Engine/Plugins/Experimental/AnimNextAnimGraph/Source/AnimNextAnimGraph/Public/TraitInterfaces/IDiscreteBlend.h |
| Include | #include "TraitInterfaces/IDiscreteBlend.h" |
Syntax
struct IDiscreteBlend : public UE::AnimNext::ITraitInterface
Remarks
This interface exposes discrete blend related information.
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | GetBlendDestinationChildIndex
(
FExecutionContext& Context, |
Returns the blend destination child index (aka the active child index) Returns INDEX_NONE if no child is active | |
| 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 | |
| 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 | |
| void | OnBlendInitiated
(
FExecutionContext& Context, |
Called when the blend for specified child is initiated. | |
| void | OnBlendTerminated
(
FExecutionContext& Context, |
Called when the blend for specified child terminates. | |
| 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 |
Overridden from ITraitInterface
| Type | Name | Description | |
|---|---|---|---|
| const FText & | Human readable interface names, in long and short format. | ||
| const FText & | Human readable interface names, in short format (ideally 3 or 4 letters, due to space restrictions in the editor) | ||
| UE::AnimNext::FTraitInterfaceUID |
Constants
| Name | Description |
|---|---|
| InterfaceUID | Globally unique UID for this interface |