Enemy shoot through wall

My enemy can shoot through a wall. The thing about my game is, I use 2d sprites for all my assets EXCEPT the wall. The wall is from cube. So i guess the problem has to be on the collider… right? But idk how to fix it. Any ideas?

It sounds like you may be mixing 2d and 3d physics. Your wall is probably using a BoxCollider which is a 3d collider, try replacing it with the 2D version, BoxCollider2D.

Try adding a collider on your bullet object.