How to collide with NGUI element?

I have object A that has only Transform component and object B that holds some NGUI elements. Among of the NGUI elements there is element X. Object B moves and I want OnTriggerEnter to be called whenever object B collide with A. I added BoxCollider to both object A and B but the collision do not occur.

Why? The collider do not work on NGUI element?

1 Answer

1

NGUI components shouldn’t change anything related to physics (at least it doesn’t seem like it). Make sure one of your objects has an attached rigidbody. If this doesn’t solve it, let me know and I’ll convert this to a comment.

yes it helped:) thx

–

You're welcome!

–