Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 489 Bytes

File metadata and controls

10 lines (6 loc) · 489 Bytes

UnityWindowsFileDrag&Drop

Adds file drag and drop support for Unity standalone builds on windows.

It uses the GetMessage hook to intercept the WM_DROPFILES message

See the "FileDragAndDrop.cs" or "ImageExample.cs" file for an example usage.

Due to too many issues in the Unity editor (causes random silent crashes) I have disabled the hook when tested in playmode inside the editor. So this feature only works in a build.

https://www.youtube.com/watch?v=ZoHxj9WhaB8&ab_channel=Bilal