So, I’m trying to make a menu that has a left panel with a slightly transparent background, at the moment, I’m attempting to draw a background and I’m unable to make this transparent, I made a black image, with 80% opacity imported as a TGA and stored it in a Texture2D pointer(Texture2D*)
All this is in the DrawHUD() override function at the moment.
Super::DrawHUD();
float WidthPercentage = 25.0f;
float HeightPercentage = 100.0f;
const FVector2D Center(0, 0);
const FVector2D Position(0, 0);
FVector2D ScaleSize(Canvas->ClipX * (WidthPercentage / 100.0f), Canvas->ClipY * (HeightPercentage / 100.0f));
FCanvasTileItem TileItem(Position, LeftPanel->Resource, FLinearColor::White);
TileItem.Size = ScaleSize;
Canvas->DrawItem(TileItem);
So yeah, all I want is a a slightly transparent background for a panel on my game screen.
Thanks in advance!