UCanvas::K2_DrawTexture

Draws a texture 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_DrawTexture
(
    UTexture * RenderTexture,
    FVector2D ScreenPosition,
    FVector2D ScreenSize,
    FVector2D CoordinatePosition,
    FVector2D CoordinateSize,
    FLinearColor RenderColor,
    EBlendMode BlendMode,
    float Rotation,
    FVector2D PivotPoint
)

Remarks

Draws a texture on the Canvas.

Parameters

Parameter

Description

RenderTexture

Texture to use when rendering. If no texture is set then this will use the default white texture.

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.

RenderColor

Color to use when rendering the texture.

BlendMode

Blending mode 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