I’ve been working like a mad man on a new game, and ran into a snag, where I can’t seem to find any similarly answered questions to my issue I seem to be having. So I’m hoping someone here has a sharp eye/mind and can throw me a bone.
My issue is this. (I’ll try to keep it simple)
I have an image (call it ImageObject) with a script running OnPointerEnter() and OnPointerExit(). This image is a child of a parent object (call it parentObject).
When parentObject is scaled to Vector.One, things work great. OnPointerEnter() and OnPointerExit() work exactly as they should, doing things whenever the cursor starts hovering over the imageObject, and stops hovering over the imageObject.
However, when parentObject is scaled up to (Vector.One * 1.3f), then OnPointerEnter() works just perfectly, calling OnPointerEnter() when cursor starts hovering over the imageObject, but OnPointerExit() doesn’t get called when the cursor leaves the imageObject. It does get called however, after the cursor is far away from the imageObject and the cursor gets wiggled back and forth in multiple directions.
Any ideas, comrades? What’s happening here, and how might I fix OnPointerExit?
GIF added for visible understanding:
see comment below for accompanied explanation.