This issue has been closed as 'Won't Fix' due to an extended period of time without updates. If this issue is important to you please let us know by posting on the AnswerHub or UDN, and Epic will re-open the ticket for further review.
If an Alpha value is set in a FLinearColor that is used to draw a line on a Canvas HUD, the Alpha value is ignored when the line is drawn.
A comment in BatchedElements.cpp indicates that some legacy code relies on the Alpha value being ignored, but this information is not communicated to the user.
float CenterX = Canvas->ClipX / 2; float CenterY = Canvas->ClipY / 2; float X10 = Canvas->ClipX * 0.1f; float Y10 = Canvas->ClipY * 0.1f; Canvas->K2_DrawLine(FVector2D(CenterX - X10, CenterY - Y10), FVector2D(0 + (2 * X10), CenterY - Y10), 10.0f, VisorColor);
RESULT:
A horizontal green line is drawn on the HUD, but it is fully opaque. The Alpha set in VisorColor is not applied.
EXPECTED:
The Alpha set in VisorColor is used.
Head over to the existing Questions & Answers thread and let us know what's up.
3 |
Component | UE - Graphics Features |
---|---|
Affects Versions | 4.7.6, 4.8 |
Created | Apr 21, 2015 |
---|---|
Resolved | Jan 17, 2017 |
Updated | Apr 27, 2018 |