UCanvasRenderTarget2D::GetSize

Gets a specific render target's size from the global map of canvas render targets.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/CanvasRenderTarget2D.h

Include

#include "Engine/CanvasRenderTarget2D.h"

Source

/Engine/Source/Runtime/Engine/Private/CanvasRenderTarget2D.cpp

Syntax

void GetSize
(
    int32 & Width,
    int32 & Height
)

Remarks

Gets a specific render target's size from the global map of canvas render targets.

Parameters

Parameter

Description

Width

Output variable for the render target's width

Height

Output variable for the render target's height