EM_Task/UnrealEd/Private/Toolkits/SGlobalOpenAssetDialog.h

30 lines
846 B
C
Raw Normal View History

2026-02-13 16:18:33 +08:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Input/Reply.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SCompoundWidget.h"
//////////////////////////////////////////////////////////////////////////
// SGlobalOpenAssetDialog
class SGlobalOpenAssetDialog: public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SGlobalOpenAssetDialog) {}
SLATE_END_ARGS()
public:
void Construct(const FArguments& InArgs, FVector2D InSize);
// SWidget interface
virtual FReply OnPreviewKeyDown(const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent) override;
// End of SWidget interface
protected:
void OnAssetSelectedFromPicker(const struct FAssetData& AssetData);
void OnPressedEnterOnAssetsInPicker(const TArray<struct FAssetData>& SelectedAssets);
};