Answer the question
In order to leave comments, you need to log in
Why doesn't OnTriggerEnter2D fire?
Like code:
public void OnTriggerEnter(Collider other)
{
print("BOOM");
Destroy(gameObject);
}
Answer the question
In order to leave comments, you need to log in
You use the OnTriggerEnter function, which works with 3d objects/colliders, when you use 2D colliders in the scene, for which you need to use the function: https://docs.unity3d.com/ScriptReference/MonoBehav...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question