- Home /
How to blur the corners of the screen?
Hello human beings!
I need to blur the corners of the screen in a more red color as the player get hurt more. I don't know how to do this... Is there an asset from the store for that?
Please help me. Tx.
Answer by TheFish657 · Oct 02, 2016 at 12:11 PM
Here's an image you can use for your red vignette, took me all of 20 secs to make!
When you imprt it into unity change texture type to Sprite.
Then make a new UI image, set the source image to your sprite
Then just change the anchor presets so it fills the screen(The anchor presets are just under the word "rect transform" on your image. Select the option on the bottom left)
then just change your script to increase the alpha of the colour of this image as your player's hp goes down. p.s. Probably gonna use this in my game now XD [1]: /storage/temp/79371-screen-red-vignette.png
Anyone who looks at this feel free to use this in your game.
Thanks! I think i'll create a different picture but the general idea was good.
Answer by Metorphium · Oct 02, 2016 at 05:39 AM
You could blur the Screen and add a Vignette effect with the Standard Effect Asset Pack already installed in your Unity.
Just import the Standard Effects Asset Pack into your Project and go into the Scripts folder to select your Script you want to use
That would be the one problem, but perhaps you can find the line in the code that says that the vignette is supposed to be black and change that value to red. I cant check that atm.
Answer by Sondre-S · Oct 01, 2016 at 05:57 PM
I would just use a transparent png image. Then you could adjust the alpha value as the players health is decresing.
Just make one in photo shop or paint.net. If you don't know how, there are lots of tutorials out there.