Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/CanvasTypes.h |
Include |
#include "CanvasTypes.h" |
Source |
/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
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
Parameter |
Description |
---|---|
ViewSizeX |
Viewport width |
ViewSizeY |
Viewport height |