RealtimeStyleTransferRuntime/Source/LyraGame/UI/Common/LyraWidgetFactory_Class.h

29 lines
759 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Containers/Map.h"
#include "LyraWidgetFactory.h"
#include "Templates/SubclassOf.h"
#include "UObject/SoftObjectPtr.h"
#include "UObject/UObjectGlobals.h"
#include "LyraWidgetFactory_Class.generated.h"
class UObject;
class UUserWidget;
UCLASS()
class LYRAGAME_API ULyraWidgetFactory_Class : public ULyraWidgetFactory
{
GENERATED_BODY()
public:
ULyraWidgetFactory_Class() { }
virtual TSubclassOf<UUserWidget> FindWidgetClassForData_Implementation(const UObject* Data) const override;
protected:
UPROPERTY(EditAnywhere, Category = ListEntries, meta = (AllowAbstract))
TMap<TSoftClassPtr<UObject>, TSubclassOf<UUserWidget>> EntryWidgetForClass;
};