Hello all!
I want to do something like that http://www.youtube.com/watch?v=O4MECMEB_ks using onGUI. Could anybody give me some example, tutorial or articles that helps me to do it?
Thank you!
Hello all!
I want to do something like that http://www.youtube.com/watch?v=O4MECMEB_ks using onGUI. Could anybody give me some example, tutorial or articles that helps me to do it?
Thank you!
Ok, I found some tips here: GUI Drag and Drop - Questions & Answers - Unity Discussions
But I have next question How to attach dragged button to the cursor? I mean, how to visual show that dragged button follow the cursor?
Thank You.
Personally, I’d firstly try creating grid sections across a plane and make each object you’re dragging a singular plane, aligning it to each nearest grid square it’s dropped/hovered to with an atlas texture for all textures and avoid OnGUI entirely for the mess it’d be to handle all of it…
I’m working on 2D world, and Event and EventType work really fine with onGUI elements.
What you mean “creating grid sections across a plane”?