Quantcast
Channel: Questions in topic: "post processing"
Viewing all articles
Browse latest Browse all 713

Is it possible to handle mouse input for UI elements in a custom way?

$
0
0
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

Viewing all articles
Browse latest Browse all 713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>