Welcome,
Guest
. Please
login
or
register
.
May 02, 2026, 01:43:24 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
How to Enable Box Collider when CloneOnDrag in UIDragDropItem is checked?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to Enable Box Collider when CloneOnDrag in UIDragDropItem is checked? (Read 4627 times)
tofanwi
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 3
How to Enable Box Collider when CloneOnDrag in UIDragDropItem is checked?
«
on:
September 30, 2014, 10:25:41 PM »
i want to drop the clone object to grid, but the clone object can't drop to UIDragDropContainer, in my opinion the clone object can't drop to UIDragDropContainer because the box collider is false, why? how to fix it?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: How to Enable Box Collider when CloneOnDrag in UIDragDropItem is checked?
«
Reply #1 on:
October 01, 2014, 05:07:09 PM »
When an object is dragged its collider should be turned off so that it doesn't eat up events intended for whatever you're dropping it on.
Not sure what you mean by "box collider is false".
Logged
tofanwi
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 3
Re: How to Enable Box Collider when CloneOnDrag in UIDragDropItem is checked?
«
Reply #2 on:
October 02, 2014, 08:39:40 PM »
i mean box collider is turn off when the clone object is dragged, how to enable the box collider of clone object so that the clone object can eat up events intended for whatever you're dropping it on, how?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: How to Enable Box Collider when CloneOnDrag in UIDragDropItem is checked?
«
Reply #3 on:
October 02, 2014, 11:07:45 PM »
What? If you enable the collider of the dragged object, then it will steal all the events. There will be no "drop" event going to anything underneath, because you will end up dropping the object onto itself.
Logged
tofanwi
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 3
Re: How to Enable Box Collider when CloneOnDrag in UIDragDropItem is checked?
«
Reply #4 on:
October 03, 2014, 03:41:33 AM »
my problem is solved with my self hahahaha, i can drop the clone object into dragdropcontainer, the cone object is drop into grid, and i want to make the container of grid is limited, i just want 6 object in grid, how to do that?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: How to Enable Box Collider when CloneOnDrag in UIDragDropItem is checked?
«
Reply #5 on:
October 04, 2014, 07:36:55 AM »
Validate your drop operation in OnDragDropRelease().
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
How to Enable Box Collider when CloneOnDrag in UIDragDropItem is checked?