I’m creating a function that takes an FDragDropOperation as a param.
Visual Studio shows no errors with that, but when I try to compile, I get this: Error: Unrecognized type 'FDragDropOperation' - type must be a UCLASS, USTRUCT or UENUM
the function: void SlotDragDropOperation(FDragDropOperation* Operation, int32 SlotIndex);
I believe I have the appropriate include: #include "Input/DragAndDrop.h
Hey Tuaryllon,
is the SlotDragDropOperation function a UFUNCTION()? If the answer is yes, maybe that’s the problem. The FDragDropOperation class is from the SlateCore module and it’s derived from an Unreal Smart Pointer (TSharedFromThis < FDragDropOperation > ), that is incompatible with the UObject Garbage Collection. I don’t know if you need to use the SlotDragDropOperation function inside Blueprints, but if that’s the case, you should use just Blueprint accepted parameters and then use what you need from FDragDropOperation inside the C++ function.