2019-12-26 15:33:43 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2018-09-05 17:18:42 -04:00
|
|
|
|
|
|
|
|
#include "EditorUtilityWidget.h"
|
|
|
|
|
#include "Modules/ModuleManager.h"
|
|
|
|
|
#include "Misc/PackageName.h"
|
|
|
|
|
#include "GameFramework/Actor.h"
|
|
|
|
|
#include "Editor/EditorPerProjectUserSettings.h"
|
2022-05-02 18:06:48 -04:00
|
|
|
#include "AssetRegistry/AssetData.h"
|
2018-09-05 17:18:42 -04:00
|
|
|
#include "Engine/Selection.h"
|
|
|
|
|
#include "Editor.h"
|
|
|
|
|
#include "ScopedTransaction.h"
|
|
|
|
|
#include "IAssetTools.h"
|
|
|
|
|
#include "IContentBrowserSingleton.h"
|
|
|
|
|
#include "ContentBrowserModule.h"
|
|
|
|
|
#include "AssetToolsModule.h"
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////
|
|
|
|
|
#define LOCTEXT_NAMESPACE "EditorUtility"
|
|
|
|
|
|
|
|
|
|
UEditorUtilityWidget::UEditorUtilityWidget(const FObjectInitializer& ObjectInitializer)
|
|
|
|
|
: Super(ObjectInitializer)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void UEditorUtilityWidget::ExecuteDefaultAction()
|
|
|
|
|
{
|
|
|
|
|
check(bAutoRunDefaultAction);
|
|
|
|
|
|
|
|
|
|
FScopedTransaction Transaction(NSLOCTEXT("UnrealEd", "BlutilityAction", "Blutility Action"));
|
|
|
|
|
FEditorScriptExecutionGuard ScriptGuard;
|
|
|
|
|
|
2019-05-08 18:48:36 -04:00
|
|
|
Run();
|
2018-09-05 17:18:42 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#undef LOCTEXT_NAMESPACE
|