Is there any way to ignore a tilemap collider or a specific collider in Code (CSharp): Physics2D.OverlapBox but use it in Code (CSharp): void OnMouseEnter()
Yes, OverlapBox accepts a LayerMask parameter which allows you to selectively include/exclude certain layers.
Start by reading the documentation: https://docs.unity3d.com/ScriptReference/Physics2D.OverlapBox.html