I need a custom way to handle mouse position input in a UI. I'm using a post-processing effect on the UI, which uses spherical distortion, so it makes UI elements appear slightly distorted near the edges. They also appear slightly further than they are without the distortion effect on. The default input system doesn't account for this displacement, obviously. Is it possible to create a custom script or something which would correct the mouse position and make UI elements react only to the corrected position?
I'm using Unity's new input system, if that matters.
![alt text][1]
(I have to click in the red area to use the scrollbar, I'd like to drag it where it actually appears on the screen)
[1]: /storage/temp/200246-uithing.jpg
↧