How do you detect OnMouseEnter on a collider that is behind a GUI element?

I have objects that can be interacted with by rolling the cursor over them, making them move around on screen. When the objects get to a position where they are behind a GUI Box or Button, they no longer detect the mouse cursor rolling over them. I need a way to detect the mouse through a GUI element. If anyone knows how I would greatly appreciate it!

Hey Joe,

OnMouseEnter requires you to click on the object behind the GUI Element.

Try Using OnMouseOver, this will then allow you to hover your cursor over the objects behind the GUI and activate the function/Method within.

void OnMouseOver () 
{
	Debug.Log("Mouse Entered");
}

Ensure the GUI Element does not have a OnMouseOver script attached, otherwise you will recieve a conflict.