// Fill out your copyright notice in the Description page of Project Settings. #include "MyBlueprintFunctionLibrary.h" void UMyBlueprintFunctionLibrary::AdjustViewportSize(float OriginX, float OriginY, float SizeX, float SizeY) { GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].OriginX = OriginX; // default: 0.f GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].OriginY = OriginY; // default: 0.f GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].SizeX = SizeX; // default 1.f GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].SizeY = SizeY; // default 1.f } FColor UMyBlueprintFunctionLibrary::HexToColor(FString HexString) { return FColor::FromHex(HexString); }