Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetRenderingLibrary
Description
Changes the resolution of a render target. This is useful for when you need to resize the game viewport or change the in-game resolution during runtime and thus need to update the sizes of all the render targets in the game accordingly.
| Name | ResizeRenderTarget2D |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetRenderingLibrary.h |
| Include Path | #include "Kismet/KismetRenderingLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/KismetRenderingLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Rendering")
static void ResizeRenderTarget2D
(
UTextureRenderTarget2D * TextureRenderTarget,
int32 Width,
int32 Height
)