onMouseOver not working for 3D box?

I’ve seen a couple posts about this, but none worked, and I would like to avoid re-implementing core functionality, if I can.

The situation is simple: Have a box with box collider. onMouseOver works only in a part of it, depending on where the player is standing.

Attached screenshots highlight the issue (right side: game view, left side: scene view, with camera mouse direction denoted by the red line.)

Why is this happening?

EDIT: The relevant code is:

private void OnMouseOver()
    {
        mouseOvered = true;
        print(playerInTrigger);
        if (playerInTrigger)
        {
            print("in");
            playerUIHandler.SetInteractableText(gameObject.name);
        }
    }

I figured it out, turns out, my FirstPersonController’s capsule collision was throwing it off. The part where it doesn’t detect the box, that’s the capsule collision blocking the camera’s raycast. Setting my player layer to Ignore Raycast fixed it!

Can you maybe attach some of the code that you use to get this? It is really hard to understand what you are trying to do. My first thought was that you should be using ScreenPointToWorldPoint or something similar to do this right? If you are already doing this, make sure that you are using the right camera.