- Home /
return objects position if not dropped onto GUI
How can I return an object if it not gets dropped on a GUI? It shall return dynamically to its original position (as there are several of them). If it gets dropped successfully it shall disappear. Does anybody got something similar to this?
Big thanks
Comment
Sorry, you'll have to elaborate. What do you have already?
Hi. I mean to drag an object. If it gets dropped onto a GUI-texture it shall disappear from its original position and triggering a function e.g. Debug.Log("Test");
If it gets dropped anywhere else it shall return to its original position. $$anonymous$$eans I can drop it either on the GUI or nowhere. Thx
Are you using GUItexture or GUI layout (via scripting inside OnGui function)?
Your answer
