DeskSim v2 0.1
Train simulator prototype created for Lokførerskolen
WidgetDragDropOperation.h
1// Copyright 2022 Thomas Arinesalingam, John Ole Bjerke, Endre Heksum & Henrik Markengbakken Karlsen . All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Blueprint/DragDropOperation.h"
7#include "WidgetDragDropOperation.generated.h"
8
12UCLASS()
13class DESKSIMV2_API UWidgetDragDropOperation : public UDragDropOperation
14{
15 GENERATED_BODY()
16
17public:
18 UPROPERTY(EditAnywhere, BlueprintReadWrite)
19 UUserWidget* DraggedWidget;
20
21 UPROPERTY(EditAnywhere, BlueprintReadWrite)
22 FVector2D ScreenOffset;
23
24};
Definition: WidgetDragDropOperation.h:14