// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "Input/DragAndDrop.h" #include "DragAndDrop/DecoratedDragDropOp.h" #include "ClassIconFinder.h" class FActorDragDropOp : public FDecoratedDragDropOp { public: DRAG_DROP_OPERATOR_TYPE(FActorDragDropOp, FDecoratedDragDropOp) /** Actor that we are dragging */ TArray< TWeakObjectPtr< AActor > > Actors; void Init(const TArray< TWeakObjectPtr >& InActors) { for(int32 i=0; iGetActorLabel()); } else { CurrentHoverText = FText::Format(NSLOCTEXT("FActorDragDropOp", "FormatActors", "{0} Actors"), FText::AsNumber(InActors.Num())); } SetupDefaults(); } };