- Home /
how can i determine that my container is fill with another object ,e.g when i drag an object and drop into another container
Don't put the whole question in the title, and be more specific. Are you talking about edit time or is this some runtime script? Where in Unity are you doing the drag and drop? Please edit your question.
Answer by foobuggy · Dec 09, 2013 at 11:00 PM
If this is at runtime, check these two events out:
http://docs.unity3d.com/Documentation/ScriptReference/Collider.OnCollisionEnter.html
http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnTriggerEnter.html
Either of those should be relatively straightforward to implement and one of them might provide the functionality you need. The pages have script examples included as well.
Your answer
![](https://koobas.hobune.stream/wayback/20220613123804im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
DragAndDrop EditorGUILayout.Box ? 1 Answer
How to tell if DragAndDrop has been cancelled or completed. 0 Answers
Drag and Drop menu and Save load game. 0 Answers
How to swap textures? 1 Answer