Unity 2D Collider not working

I have a temporary player asset and a temporary enemy asset. I have successfully put Circle Colliders 2D on both but when I run the script it appears like I didn’t put my Colliders. Here is my temporary script.

void OnTriggerEnter2D(Collider2D other){
Debug.Log (“Gumagana na!”);
}
void OnTriggerExit2D(Collider2D other){
Debug.Log (“Gumana ka na please!”);
}
void OnTriggerStay2D(Collider2D other){
Debug.Log (“Nagmamakaawa ako!”);
}

Does the object entering the trigger using a rigidbody2D? Without rigidbody it won’t run any trigger event.

Even in 2D we need to have a rigidbody?

If neither have a rigidbody then they are both static colliders. Static colliders should not be moved and they don’t collide (or trigger) with each other.

Oh. Thank you very much! Solved it already. :smile: