how to put a collider on an object but doesnt block the mouse click on the object behind?

I only need the collider to check if other objects entered its region or not, i dont want it to block other gameobjects OnMouseDown() function

any help please

What about setting it to Ignore Raycast layer?

Hi, you can do this…

[SerializeField] private LayerMask inputLayerMask;
       
private void Start()
{
	Camera.main.eventMask = inputLayerMask;
}

Then in the game object’s inspector set what layer mask, or masks, you want to receive mouse input.