I’m off to a very bad start with my new project, as it all revolves around drag and drop; which I can’t figure out. Anyway, I have looked around on Google, but can’t find anything that is of much help to me. I have, however, found a few things that give me a basic idea (MSDN, CodeProject, CodeProject2), although they all use the System.Windows namespace, which Unity doesn’t seem to like. Maybe I am missing something, but I can’t figure this out.
If it helps, my goal is to make a simple application, with a drag and drop window (one for an image, one for a “.txt” file), that will encode the text from the .txt file and hide it in the structure of the image. So far, all I have done is searched Google for some help with Drag and Drop windows, so any help is very valuable to me!
I really appreciate you taking the time to read this, and keep in mind, every bit of help is useful at this point.
I’m a bit confused why you want to do such an app as Unity application? That seems to be much easier when you just use C# / C++ and the windows API (in case you want to target windows which can’t be determined from your question).
As i said in the comment of the question above it could be possible to kind of hack into the message queue of your application window, but that's not a nice solution. I guess it would be easier to create a native code plugin which creates another window which will accept drag&drop opperations and hand over this information to Unity.
Of course this is not an optimal solution, but Unity isn't designed for office-application development. Well Unity could add such a feature in the future, but it's really something that almost nobody needs.
Well it would be nice to have something like that in the webplayer together with a secure interface to the dropped data (only read access). This would make Unity more valueable for webtool-development, but as already said there is just a minority of people that would need something like that.
you can check it by dragging the corresponding dll of class you want want to use inside unity!! most of the system.*.dlls worked for me !! After draggin it into unity, it works like any other class!
I had the same question. Looks like there’s a Windows answer, but not Mac. So I have to do a little Mac programming work. If I get it working, I’ll report back with a link.