Navigation
Unreal Engine C++ API Reference > Runtime > Engine > FCanvas > DrawTile
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/CanvasTypes.h |
Include | #include "CanvasTypes.h" |
Source | /Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
void DrawTile
(
double X,
double Y,
double SizeX,
double SizeY,
float U,
float V,
float SizeU,
float SizeV,
const FLinearColor & Color,
const FTexture * Texture,
bool AlphaBlend
)
Remarks
Draw arbitrary aligned rectangle.
Parameters
Name | Description |
---|---|
X | X position to draw tile at |
Y | Y position to draw tile at |
SizeX | Width of tile |
SizeY | Height of tile |
U | Horizontal position of the upper left corner of the portion of the texture to be shown(texels) |
V | Vertical position of the upper left corner of the portion of the texture to be shown(texels) |
SizeU | The width of the portion of the texture to be drawn. This value is in texels. |
SizeV | The height of the portion of the texture to be drawn. This value is in texels. |
Color | tint applied to tile |
Texture | Texture to draw |
AlphaBlend | true to alphablend |