#button "hitbox" not centered

1 messages · Page 1 of 1 (latest)

faint cradle
#

hey guys, i had a quick question. I'm working on my game here, and I have a shader that does a fisheye effect on my UI. however, this has become a problem as now (as seen in the video) my buttons "hitboxes" have become off-centered and i cant really find a way to fix this. thank you so much in advance

brave widget
#

Does it work if you take the fisheye affect off

earnest galleon
#

Wild guess: Shaders work on the GPU, so they've only made visual changes. But your buttons (Control nodes) are actually still in the original location.

Maybe you could add an in-game mouse cursor (instead of the OS one), and make sure that the shader also applies to it. This way the in-game mouse should get the same warping/distortion as the buttons, and they should align again.