Unity 2D: Box Collider Not Working

I turned on Box Collider 2D for the 2D player but the player is still going through objects.

Is there any way to stop this?

If I need to use code, I’m using C#.

Thanks

Try to add Rigid body 2d to blocker object.