Its hard lets say to hit something you want to interact with when the camera is moving because the curser doesn't stay in its original position.
Here's an example of the curser moving.
It might seem like something that is a natural occurrence, but I've seen games where the curser dont move and Im sure this feature would be good for people doing sidescrollers with moving cameras.
Comments
It's easy to determine where the cursor in the 2nd gif should "stick" to because the perspective doesn't shift. The same cannot be said for the 1st.
AC.Menu myMenu = AC.PlayerMenus.GetMenuWithName ("MyMenu");
Vector2 invertedMouse = KickStarter.playerInput.GetInvertedMouse ();
if (Input.GetMouseButtonDown (0) && !myMenu.IsPointInside (invertedMouse))
{
// Clicked but not inside menu, so turn off Menu
myMenu.TurnOff ();
}