Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/AlphaBlend.h |
| Include | #include "AlphaBlend.h" |
Syntax
struct FAlphaBlend
Remarks
Alpha Blend class that supports different blend options as well as custom curves
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAlphaBlend
(
float NewBlendTime |
Constructor | ||
FAlphaBlend
(
const FAlphaBlendArgs& InArgs |
Constructor | ||
FAlphaBlend
(
const FAlphaBlend& Other, |
Constructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | AlphaToBlendOption
(
float InAlpha, |
Converts InAlpha from a linear 0...1 value into the output alpha described by InBlendOption | |
| float | GetAlpha () |
Gets the current 0..1 alpha value. Changed to AlphaLerp to match with SetAlpha function | |
| float | Get the current begin value | ||
| float | Gets the current blended value | ||
| EAlphaBlendOption | |||
| float | GetBlendTime () |
Getters | |
| float | |||
| UCurveFloat * | |||
| float | Get the current desired value | ||
| bool | IsComplete () |
Gets whether or not the blend is complete | |
| void | Reset () |
Reset functions - | |
| void | ResetAlpha () |
Reset alpha, this keeps current BlendedValue but modify Alpha to keep the blending state. | |
| void | SetAlpha
(
float InAlpha |
Sets the Lerp alpha value directly. | |
| void | SetBlendOption
(
EAlphaBlendOption InBlendOption |
Setters - need to refresh cached value | |
| void | SetBlendTime
(
float InBlendTime |
Update transition blend time. This new value will be applied in the next Update. | |
| void | SetCustomCurve
(
UCurveFloat* InCustomCurve |
||
| void | SetDesiredValue
(
float InDesired |
Sets the final desired value for the blended value | |
| void | SetValueRange
(
float Begin, |
Sets the range of values to map to the interpolation | |
| float | Update
(
float InDeltaTime |
Update interpolation, has to be called once every frame. |