Collider callback after disabling

Disabling 2d trigger collider in editor results in firing OnTriggerExit2d callback. However, disabling the same collider in code collider.enabled = false; does not fire the callback.

To me this look like a bug. If not, how to disable collider in code so that it will fire the callback?

You’ll just have to call the same lines in your OnTriggerExit2D callback…again. I guess unity didn’t think of that…it’s kinda a special case.

Do you have a lack of English proficiency and because of it, you cannot write your assignment properly? Then get assignment help in the USA at a very cheap price. Get assignment help USA at your place if you need. You can boost your score and increase your knowledge related to any topic because our experts provide genuine data on every topic.