//Do this when the cursor exits the rect area of this selectable UI object. public void OnPointerExit(PointerEventData eventData) { if (button.interactable) { //Debug.Log("Mouse is no longer over button for state " + state); ScreenshotManager.OnPointerExit(); hover = false; StartBeingRemovedSequence(false); } }