UCanvas::K2_DrawMaterial

Draws a material on the Canvas.

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_DrawMaterial
(
    UMaterialInterface * RenderMaterial,
    FVector2D ScreenPosition,
    FVector2D ScreenSize,
    FVector2D CoordinatePosition,
    FVector2D CoordinateSize,
    float Rotation,
    FVector2D PivotPoint
)

Remarks

Draws a material 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.

ScreenPosition

Screen space position to render the texture.

ScreenSize

Screen space size to render the texture.

CoordinatePosition

Normalized UV starting coordinate to use when rendering the texture.

CoordinateSize

Normalized UV size coordinate to use when rendering the texture.

Rotation

Rotation, in degrees, to render the texture.

PivotPoint

Normalized pivot point to use when rotating the texture.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss