Welcome,
Guest
. Please
login
or
register
.
April 21, 2026, 09:18:58 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Drag and Drop objects probelms
« previous
next »
Print
Pages: [
1
]
Author
Topic: Drag and Drop objects probelms (Read 3365 times)
Tomleung
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 44
Drag and Drop objects probelms
«
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!
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Drag and Drop objects probelms
«
Reply #1 on:
March 21, 2014, 01:36:26 PM »
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.
Logged
Tomleung
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 44
Re: Drag and Drop objects probelms
«
Reply #2 on:
March 25, 2014, 03:31:27 AM »
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!
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Drag and Drop objects probelms
«
Reply #3 on:
March 26, 2014, 02:08:25 AM »
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.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Drag and Drop objects probelms