Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: echeg on September 21, 2015, 12:55:46 PM
-
Hello.
I was faced with a simple problem that can not decide.
I'm creating a training game. In certain areas it is necessary to make the dark while others leave the light.
https://yadi.sk/i/92ilCfEPjEMTG
I can of course each tutorial, make a texture size of the screen and leave it in the hole. And use Texture Mask on UIPanel
But these screens will be learning a couple of dozen. And you do not want to do for each texture size of 2048x1536.
I also have a situation where area that should remain is not darkened at a random location.
Ideally, I need to place multiple circles, and that everything around them was dark and bright inside them.
-
Think the reverse. Create a circle that's transparent in the middle, and has opaque corners (the exact opposite of the mask you are thinking of making). Now create 4 square widgets and cover the screen accordingly. You don't need any shaders, all you need to do is position your widgets via code.