Skip to content

Instantly share code, notes, and snippets.

View b-adkins's full-sized avatar

b-adkins

  • A tech company
View GitHub Profile
// Copyright 2016 People Gotta Play. All rights reserved.
#include "ProjectMK.h"
#include "UMGExtensionLibrary.h"
UTextureRenderTarget2D * UUMGExtensionLibrary::RenderWidgetToTexture(bool UseGamma, TextureFilter Filter, UUserWidget * WidgetToRender, FVector2D DrawSize, float DeltaTime)
{
if (!WidgetToRender) return nullptr;
if (DrawSize == FVector2D(0, 0)) return nullptr;