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