- Home /
Question by
mr_mirr0r · Aug 27, 2019 at 10:15 AM ·
unity 5collision2d gameboxcollider2doncollisionexit
How do I know that an object is not coliding without using OnCollisionExit?
I tried using OnCollisionExit, but it doesn't detect if the objects box collider 2D is removed. Is there another method I could use.
Comment
Answer by PKU_DZY · Aug 27, 2019 at 01:02 PM
Use API Physics.OverlapBox. More detail, refer this API manual:https://docs.unity3d.com/ScriptReference/Physics2D.html