Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h |
Include |
#include "Engine/Canvas.h" |
Source |
/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
void K2_DrawBorder
(
UTexture * BorderTexture,
UTexture * BackgroundTexture,
UTexture * LeftBorderTexture,
UTexture * RightBorderTexture,
UTexture * TopBorderTexture,
UTexture * BottomBorderTexture,
FVector2D ScreenPosition,
FVector2D ScreenSize,
FVector2D CoordinatePosition,
FVector2D CoordinateSize,
FLinearColor RenderColor,
FVector2D BorderScale,
FVector2D BackgroundScale,
float Rotation,
FVector2D PivotPoint,
FVector2D CornerSize
)
Draws a 3x3 grid border with tiled frame and tiled interior on the Canvas.
Parameter |
Description |
---|---|
BorderTexture |
Texture to use for border. |
BackgroundTexture |
Texture to use for border background. |
LeftBorderTexture |
Texture to use for the tiling left border. |
RightBorderTexture |
Texture to use for the tiling right border. |
TopBorderTexture |
Texture to use for the tiling top border. |
BottomBorderTexture |
Texture to use for the tiling bottom border. |
ScreenPosition |
Screen space position to render the texture. |
ScreenSize |
Screen space size to render the texture. |
CoordinatePosition |
Normalized UV starting coordinate to use when rendering the border texture. |
CoordinateSize |
Normalized UV size coordinate to use when rendering the border texture. |
RenderColor |
Color to tint the border. |
BorderScale |
Scale of the border. |
BackgroundScale |
Scale of the background. |
Rotation |
Rotation, in degrees, to render the texture. |
PivotPoint |
Normalized pivot point to use when rotating the texture. |
CornerSize |
Frame corner size in percent of frame texture (should be < 0.5f). |