
Drag out files from your Game to Windows, or vice versa - receive Drop in files from Windows to your game or application.This plugin allows you to make your Game player able to BI-DIRECTIONAL DRAG AND DROP!- Invoke DoDragDrop and send files from your built game/app into Windows (File explorer, browser, telegram and etc).- Subcribe for file Drop from outside (from Windows to Game)Features- Receive drop outside the Game/application- Send drop outside from Game/application- Send drop and receive drop inside same Game/application instance (UI thread will be locked, but onFilesDrop event will be invoked)Sources used- UnityWindowsFileDrag-Drop - Editor only drop receive-part code- How to Implement Drag and Drop Between Your Program and Explorer - Chapter 'Initiating a drag and drop' is pretty usefull for DoDragDrop- Gemini, MSDN - While WinAPI Vibe Coding is still too much for AI and reading MSDN is still too much for Me, combo of these two will produce something, that seems to workTheoretically, this code can be adapted for any C# application and even more, since WinAPI calls are used here, it can be rewritten in Rust. The only thing you must have - ability to P/Invoke.Known Issues- Thread block when WinAPI.DoDragDrop (blocks UI). Invoking WinAPI.DoDragDrop from another thread causes OleInitialize error 0x80010106 'RPC_E_CHANGED_MODE'- Build Crash with ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FF614D811F2). Fix: Player Settings -> Other Settings -> Managed Stripping Level set to 'Disabled'Gemini has been used as assistance for WinAPI integration