Per-Sorting Layer Collision

Is it possible to create a system where the colliders attached to objects on collide if the attached sprites have matching SortingLayers? Thanks!

If you want to let GameObjects collide by Layers, goto Project Settings and goto Physics (or in your case Physics 2D) and goto Layer Collision Matrix.
Hope that’s what you need.