mob-sakai / SoftMaskForUGUI

Enhance Unity UI (uGUI) with advanced soft-masking features to create more visually appealing effects!
https://github.com/mob-sakai/SoftMaskForUGUI
MIT License
2k stars 262 forks source link

fixed #52 where click events were not detected due to the y axis beeing inverted on some graphics apis #64

Closed D33pTh0ught closed 4 years ago

D33pTh0ught commented 4 years ago

This should fix the issue, however it was only tested on Android, iOS, Windows and Linux (should be tested on other platforms too). Weirdly enough the fix mustn't be applied on the Metal platform (iOS) despite having the y axis inverted (see here: https://docs.unity3d.com/Manual/SL-PlatformDifferences.html under Render Texture coordinates; maybe this case is handled elsewhere).