Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: J450NP13 on November 26, 2013, 08:52:02 AM

Title: Collision on buttons with dragobject attached?:
Post by: J450NP13 on November 26, 2013, 08:52:02 AM
I have some buttons using NGUI and I have the object drag script attached to them to be able to drag them around.  They have their own colliders attached as well obviously.

Is there a way to make them collide with other buttons so they do not overlap each other.
Title: Re: Collision on buttons with dragobject attached?:
Post by: ArenMook on November 26, 2013, 11:17:25 AM
Technically, yes... but you have to switch their colliders to not be triggers, and move them using physics. This involves adding rigidbodies to them, and moving the rigidbody.
Title: Re: Collision on buttons with dragobject attached?:
Post by: J450NP13 on November 26, 2013, 11:39:41 AM
Would that be the proper way to go about this?  Am I going to get any crazy rigidbody movement?