For a demo project, please visit: Sandbox Unity Project
Unified Universal Blur allows you to display blurred version of the screen, usually for translucent UI effects.
Currently intended use cases include (other scenarios may not work):
- UI image component with blur material, displaying blurred 3D world (Canvas set to 'Screen Space - Overlay').
Features:
- Kawase blur
- Blurs both opaque and transparent objects (make sure correct setting is selected)
- Blurs Post-Processing and any other image effect which is rendered before blur (based on render feature order)
Tested and working for unity versions:
- 2022.2
- 2021.3
- 2020.3
This repository works with upm.
Simply add it via package manager (get the link from <>Code button in top right corner or view releases).
To specify any version, add #version number like this: giturl#1.0.0
(more information using upm at: https://docs.unity3d.com/Manual/upm-git.html)
Manual: It is also possible to download zip and put its content anywhere in the project.
- Add "Universal Blur Feature" renderer feature in every renderer data that is being used by project.
(more information about using universal renderer: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@15.0/manual/urp-universal-renderer.html). - Assign "KawaseBlurMat" material to passMaterial if not present already.
- (Optional) Play with settings.
- Assign BlurForUI material to any UI image component.
- Done.