Box collider and Physics.Raycast

I cast Raycast form camera script and I have only one existing Box collider in scene

if (Physics.Raycast(mousePositionInWorld, transform.forward, 10))
{
   Debug.Log("Ray hit something");
}

I get message Ray hit something

But i never get trigger on the box collider gameObject

void OnTriggerEnter(Collider other) {
        Debug.Log("Menu hit");
    }

Target object is gameObject only with Box collider, and script for trigger checking

As OrangeLightning says, raycast doesn’t trigger OnTriggerXXX or OnCollisionXXX functions. Those are called by physic rigidbodies / charactercontrollers.

On the other hand, you can use OnMouseXXX.