I'm working on an Android app and I need an easy and intuitive way to get the screen to lighten/darken. On Android, I can't manipulate the screen brightness directly while using Unity, so I figure the best way to do this is to have a full-screen black sprite over top of everything and set the alpha based on a swipe. If the user swipes upward, I want to decrease the alpha on my black overlay, making it appear brighter. If the user swipes downward, I want the alpha to increase, making the screen appear darker.
I just need to detect the swipe, then send the touch's Y-position to my black sprite. Can I use UISlider somehow, or Scrollbar? How should I go about this?
Or is there some other way I should be doing such a thing?
Thanks in advance for your thoughts and advice.