UCanvas::K2_DrawMaterialTriangle

Draws a set of triangles on the Canvas.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h

Include

#include "Engine/Canvas.h"

Source

/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp

Syntax

void K2_DrawMaterialTriangle
(
    UMaterialInterface * RenderMaterial,
    TArray< FCanvasUVTri > Triangles
)

Remarks

Draws a set of triangles on the Canvas.

Parameters

Parameter

Description

RenderMaterial

Material to use when rendering. Remember that only the emissive channel is able to be rendered as no lighting is performed when rendering to the Canvas.

Triangles

Triangles to render.