We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// Fill out your copyright notice in the Description page of Project Settings.
#include "MenuWidget.h"
void UMenuWidget::Setup() { this->AddToViewport();
UWorld* World = GetWorld(); if (!ensure(World != nullptr)) return; APlayerController* PlayerController = World->GetFirstPlayerController(); if (!ensure(PlayerController != nullptr)) return; FInputModeUIOnly InputModeData; InputModeData.SetWidgetToFocus(this->TakeWidget()); InputModeData.SetLockMouseToViewportBehavior(EMouseLockMode::DoNotLock); PlayerController->SetInputMode(InputModeData); PlayerController->bShowMouseCursor = true;
}
void UMenuWidget::Teardown() { this->RemoveFromViewport();
UWorld* World = GetWorld(); if (!ensure(World != nullptr)) return; APlayerController* PlayerController = World->GetFirstPlayerController(); if (!ensure(PlayerController != nullptr)) return; FInputModeGameOnly InputModeData; PlayerController->SetInputMode(InputModeData); PlayerController->bShowMouseCursor = false;
void UMenuWidget::SetMenuInterface(IMenuInterface* MenuInterface) { this->MenuInterface = MenuInterface; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
// Fill out your copyright notice in the Description page of Project Settings.
#include "MenuWidget.h"
void UMenuWidget::Setup()
{
this->AddToViewport();
}
void UMenuWidget::Teardown()
{
this->RemoveFromViewport();
}
void UMenuWidget::SetMenuInterface(IMenuInterface* MenuInterface)
{
this->MenuInterface = MenuInterface;
}
The text was updated successfully, but these errors were encountered: