Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Tomleung on March 20, 2014, 10:31:38 PM
-
How to solve a probelm that if I drag and drop item on the surface and avoid overlapping the other GameObjects ,or especially the walls and the other items dropped before, even that the gameobjects identified by myself that should not overlapping ?
Could this new functionality be updated and added into NGUI?
Also how it should be done?
Thanks!
-
If you want that kind of overlap detection, it's up to you to add it via Physics.OverlapSphere. That's game-specific functionality that has nothing to do with GUI.
Drag & drop is just a simple example -- and it wouldn't make sense to add checks for overlapping dropped 3D objects to GUI code.
-
I've tried to use Physics.OverlapSphere to prevent overlap items dropped but unforuately failed.
Could you tell me that how it should be done in detail, or what would you do if you want to do this?
What should do in scripting as also?
Thanks!
-
As I said, this has nothing to do with GUI. You are trying to create an object and ensure that it doesn't overlap with another object. Sorry, but this forum is for NGUI support, not Unity usability questions.