For some reason the hitbox seems to get distorted the second time this menu is displayed.
Its probably best seen in the video below, but I will also describe it .
The prefab for my world space menu looks like this :
I have an animator that opens the subpanel (panel has raycast off, button images have them on)
The first time this menu is shown I can hover over the top button “Move” and the hitbox is correct.
After closing and opening the panel again, the hitbox is not where it should be. I can test this by debugging print statements with a graphics raycaster and inspecting the Event system in the hierarchy
It seems to think the button is actually somewhere closer to the red area
Also my worldSpace canvas does have the main camera assigned.
I’m wondering if it has something to do with the rotation of the 2D character to always face the camera like a billboard somehow throwing this off?
Any ideas? Please send them my way
Thank you