You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
awesome_game/Source/TurnBasedTutorial/MainMenu/MainMenuPlayerController.cpp

14 lines
386 B

// Fill out your copyright notice in the Description page of Project Settings.
#include "MainMenuPlayerController.h"
#include "Blueprint/UserWidget.h"
void AMainMenuPlayerController::BeginPlay() {
Super::BeginPlay();
SetShowMouseCursor(true);
UUserWidget *CreatedWidget = CreateWidget<UUserWidget>(
GetWorld(), WidgetClass);
CreatedWidget->AddToViewport();
}