@Brian_Trotter
I implemented the fix to my tooltip closing inconsistent behavior from here:
using this:
void IPointerExitHandler.OnPointerExit(PointerEventData eventData)
{
var slotCorners = new Vector3[4];
GetComponent<RectTransform>().GetWorldCorners(slotCorners);
Rect rect = new Rect(slotCorners[0], slotCorners[2] - slotCorners[0]);
if (rect.Contains(eventData.position)) return;
ClearTooltip();
}
It’s working but introduced another issue for me, my tooltip sometimes gets stuck and does not close even though my mouse is not already over the item.
It happens mostly when hovering over the item on action my bar.
It’s difficult to see for sure because the video is blurry until just AFTER the last mouseover, so I can’t read the time stamps… it looks like the OnPointerExit isn’t firing at all when it leaves. It’s possible that the event isn’t firing at all, perhaps if the mouse is moving too quickly…
What could be causing this? maybe I am calling some code that interferes with its intended functionality.
As I’m in the middle parts of the shop’s and abilities course I will keep testing and update if it comes back. Thank you.