Skip to content
Snippets Groups Projects
Commit d81474c5 authored by Timon Römer's avatar Timon Römer
Browse files

Removes closing from Utility Error Message function

parent 6aa8a54d
No related branches found
No related tags found
1 merge request!88Merges IntenSelect 5.3 into dev 5.3
Pipeline #399869 failed
......@@ -43,9 +43,8 @@ void UIntenSelectable::BeginPlay()
{
if (ScoringBehaviours.Num() == 0)
{
URWTHVRUtilities::ShowErrorAndQuit(
"Please assign the Scoring Behaviour manually when using more than one IntenSelectable Component!",
false, this);
URWTHVRUtilities::ShowEngineError(
"Please assign the Scoring Behaviour manually when using more than one IntenSelectable Component!");
}
}
else
......
......@@ -48,12 +48,11 @@ float URWTHVRUtilities::GetEyeDistance()
return 0;
}
void URWTHVRUtilities::ShowErrorAndQuit(UWorld* WorldContext, const FString& Message)
void URWTHVRUtilities::ShowEngineError(const FString& Message)
{
UE_LOG(Toolkit, Error, TEXT("%s"), *Message)
#if WITH_EDITOR
const FText Title = FText::FromString(FString("RUNTIME ERROR"));
FMessageDialog::Open(EAppMsgType::Ok, FText::FromString(Message), Title);
#endif
UKismetSystemLibrary::QuitGame(WorldContext, nullptr, EQuitPreference::Quit, false);
}
......@@ -31,5 +31,5 @@ public:
static float GetEyeDistance();
UFUNCTION(BlueprintCallable)
static void ShowErrorAndQuit(UWorld* WorldContext, const FString& Message);
static void ShowEngineError(const FString& Message);
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment