UKismetRenderingLibrary::BeginDrawCanvasToRenderTarget

Returns a Canvas object that can be used to draw to the specified render target.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetRenderingLibrary.h

Include

#include "Kismet/KismetRenderingLibrary.h"

Source

/Engine/Source/Runtime/Engine/Private/KismetRenderingLibrary.cpp

Syntax

static void BeginDrawCanvasToRenderTarget
(
    UObject * WorldContextObject,
    UTextureRenderTarget2D * TextureRenderTarget,
    UCanvas *& Canvas,
    FVector2D & Size,
    FDrawToRenderTargetContext & Context
)

Remarks

Returns a Canvas object that can be used to draw to the specified render target. Canvas has functions like DrawMaterial with size parameters that can be used to draw to a specific area of a render target. Be sure to call EndDrawCanvasToRenderTarget to complete the rendering!

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