1
NGUI 3 Support / Detect widget collision
« on: February 27, 2015, 05:00:14 PM »
Hello,
I have a map with UIWidget markers. I need to detect collision between them (eg : MarkerPlayer entering GruntPlayer) and detect click, drag, etc...
So each of my marker have a rigidbody and a collider. But it does not fire anymore any OnClick or other "regular" events.
Others infos :
-each collider has 0 on z size.
-I use a modified version of UITriggerEvent but it works well when I remove the rigidbody
-Does not work with UICamera set to 3D UI neither 3D world.
-All my markers are anchored to external gameobjects.
-collider's IsTrigger = true;
Where I am wrong ?
I have a map with UIWidget markers. I need to detect collision between them (eg : MarkerPlayer entering GruntPlayer) and detect click, drag, etc...
So each of my marker have a rigidbody and a collider. But it does not fire anymore any OnClick or other "regular" events.
Others infos :
-each collider has 0 on z size.
-I use a modified version of UITriggerEvent but it works well when I remove the rigidbody
-Does not work with UICamera set to 3D UI neither 3D world.
-All my markers are anchored to external gameobjects.
-collider's IsTrigger = true;
Where I am wrong ?