Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FCanvas
Description
Generate a 2D projection for the canvas. Use this if you only want to transform in 2D on the XY plane
| Name | CalcBaseTransform2D |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/CanvasTypes.h |
| Include Path | #include "CanvasTypes.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
static FMatrix CalcBaseTransform2D
(
uint32 ViewSizeX,
uint32 ViewSizeY
)
Matrix for canvas projection
Parameters
| Name | Remarks |
|---|---|
| ViewSizeX | Viewport width |
| ViewSizeY | Viewport height |