Meanwhile you can ignore collision between two objects on different layers using the layer collision matrix on edit → project settings → physics2d and unchecking the collision you dont want to happen, it’s not as good as Physics.IgnoreCollision but can be a workaround if it’s not a complex thing.