Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity - Apply Post-Processing Effects to all UI Elements

I have been learning to use Unity's Post-Processing Effects but I cannot work out how to apply these effects to any UI Elements. I would like to try and add a bloom effect and some colour correction to improve my game's sci-fi look. If anybody knows how to do this a reply would be much appreciated.

Thank you in advance,

Tommy

like image 697
TommyE Avatar asked Jul 30 '17 17:07

TommyE


People also ask

How do you add a post-processing layer in unity?

The first thing you need to enable post-processing on a camera is to add the Component -> Rendering -> Post-process Layer component to it. The first section describes Volume blending settings for this camera: Trigger: by default the camera itself will be assigned to it.


2 Answers

If you are using Canvas then you can change Render Mode from Screen Space-Overlay to Screen Space-Camera and dragging your Camera with the Post-Processing Effects to Render Camera and then all effect should be visible on the UI too.

like image 69
Johan Lindkvist Avatar answered Sep 17 '22 21:09

Johan Lindkvist


I know I'm incredibly late to this but I found the following steps to work great:

  • setting the canvas to screen space camera
  • changing the canvas's plane distance to 0.06
  • changing the camera's near clipping planes to 0.01
  • turning off any depth of field volume overrides
  • setting the camera's anti-aliasing to anything but FXAA
like image 23
DefineDoddy Avatar answered Sep 19 '22 21:09

DefineDoddy