// 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( GetWorld(), WidgetClass); CreatedWidget->AddToViewport(); }