Heres example of code.
DraggingItem = DuplicateObject<UItem>(HoveredItem->GetItemReference(), this, MakeUniqueObjectName(this, HoveredItem->GetItemReference()->GetClass()));
Im trying to Duplicate Item Object that was created in ItemWorldActor that is a visualisation of my Item Object in the world, duplicated object’s outer is my PlayerController, DraggingItem is UItem* in my PlayerController, when i start dragging item, im destroying ItemWorldActor and duplicating item object inside my controller, when im dropping item to the world again, im creating new ItemWorldActor and setting ItemReference in ItemWorldActor as Duplicated Object from my DraggingItem, but by some reason DraggingItem is getting cleaned, whut im doing wrong?
GetItemReference() returns UItem*
if im dropping dragged item fast everything works just fine, but if im holding dragging item for like 30 seconds and then drop engine crashes.