Navigation
API > API/Plugins > API/Plugins/UAFAnimGraph
This interface exposes alpha input args & convience methods for operating on those args
Alpha input is typically a curve / float / bool that controls the strength of some other trait. Ex: 0 - no effect, 1 - full effect.
| Name | IAlphaInputArgs |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAFAnimGraph/Source/UAFAnimGraph/Public/TraitInterfaces/Args/IAlphaInputArgs.h |
| Include Path | #include "TraitInterfaces/Args/IAlphaInputArgs.h" |
Syntax
struct IAlphaInputArgs : public UE::UAF::ITraitInterface
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| InterfaceUID | UE::UAF::FTraitInterfaceUID | Globally unique UID for this interface | TraitInterfaces/Args/IAlphaInputArgs.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FAlphaInputTraitArgs Get
(
const FExecutionContext& Context, |
Returns the args captured by this trait interface. | TraitInterfaces/Args/IAlphaInputArgs.h | |
virtual FName GetAlphaCurveName
(
const FExecutionContext& Context, |
Returns current alpha curve name, if any | TraitInterfaces/Args/IAlphaInputArgs.h | |
virtual EAnimAlphaInputType GetAlphaInputType
(
const FExecutionContext& Context, |
Returns current alpha input type | TraitInterfaces/Args/IAlphaInputArgs.h | |
virtual float GetCurrentAlphaValue
(
const FExecutionContext& Context, |
Returns alpha value for current input. | TraitInterfaces/Args/IAlphaInputArgs.h | |
virtual TFunction< float(float)> GetInputScaleBiasClampCallback
(
const FExecutionContext& Context, |
Returns callback to clamp alpha values, typically used for curve sampling Note: Callback may perform a deferred write to alpha input instance data. | TraitInterfaces/Args/IAlphaInputArgs.h |
Overridden from ITraitInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText & GetDisplayName() |
Human readable interface names, in long and short format. | TraitInterfaces/Args/IAlphaInputArgs.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/Args/IAlphaInputArgs.h | |
virtual UE::UAF::FTraitInterfaceUID GetInterfaceUID() |
TraitInterfaces/Args/IAlphaInputArgs.h |