OnTriggerEnter2D and OnCollisionEnter2D not working

Both OnTriggerEnter2D and OnCollision aren’t working. I’ve a block that writes “Collided” every time it collides with ground. It does write collided when the player object is turned off, but when it’s turned on, it doesn’t write “Collided”.

No collision are detected when a parent object is turned off. So there’s a problem in you code.

Whenever it doesn’t work it may come from you layer (for people coming to learn). But in your case if it writes collided when players is turned off then it does not collide with player.

Note: context not enough accurate, but check your code.