- Home /
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?
Answer by kmeboe · Apr 16, 2013 at 11:56 PM
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.
Your answer
![](https://koobas.hobune.stream/wayback/20220613100438im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Weapon System with collide detection (Helps with script pls)!!! 0 Answers
ParticleSystem collision checking. 2 Answers
Fist Punch Collision 0 Answers
Mouse Movement with physics 1 Answer