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);
}
}