TypeWirter.cpp 1.1 KB
// Fill out your copyright notice in the Description page of Project Settings.


#include "TypeWirter.h"

// Sets default values
ATypeWirter::ATypeWirter()
{
 	// Set this actor to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = true;

}

// Called when the game starts or when spawned
void ATypeWirter::BeginPlay()
{
	Super::BeginPlay();
	
}

// Called every frame
void ATypeWirter::Tick(float DeltaTime)
{
	Super::Tick(DeltaTime);

}
//UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "UMG Game")
//
//TSubclassOf<UUserWidget> StartingWidgetClass;
//UPROPERTY()
//
//UUserWidget* CurrentWidget;
//void ATypeWirter::ChangeMenuWidget(TSubclassOf<UMyUserWidget> NewWidgetClass)
//{
//	if (CurrentWidget != nullptr)
//	{
//		CurrentWidget->RemoveFromViewport();
//		CurrentWidget = nullptr;
//	}
//	if (NewWidgetClass != nullptr)
//	{
//		CurrentWidget = CreateWidget<UMyUserWidget>(GetWorld(), NewWidgetClass);
//		if (CurrentWidget != nullptr)
//		{
//			CurrentWidget->AddToViewport();
//		}
//	}
//}