- Home /
Is there a way to blur single sprites in Unity?
I am working on a 2D game, where I have the backgrounds composed of several layers of sprites (to create parallax scrolling etc.). I want some of the layers to be blurred to create an illusion of depth, and currently I'm doing this simply by blurring the sprites before I import them into Unity.
However, this gets pretty tiresome, as I ongoingly make adjustments to the graphics, and thus have to import the same sprites over and over, so it would be nice if there was a way to apply blur to single sprites (or layers in the sprite stack) inside Unity.
I guess one way could be to arrange my scenes in 3D space and then use the Post Processing Stack Depth of field effect, but for several reasons I'd like to avoid working in 3D space.
Is there a way to apply blur effects to single sprites in 2D inside Unity? I'm open for 3rd party packages.
Answer by TheSixthHammer · Aug 04, 2021 at 10:48 AM
Since there is not so much info on this topic we did an article on how we achieved it, it's pretty detailed and you can see all of your options: https://80.lv/articles/depth-of-field-in-unity-for-2d-games-with-semi-transparent-sprites/
It's a really detailed and well written article, also your game looks very interesting honestly, best of luck....and have my upvote
Answer by misher · May 07, 2018 at 12:25 PM
You should use google before posting a question. I have found this in 3 seconds: https://www.youtube.com/watch?v=YKTjVACAfqE
But won't this one blur everything that's underneath it?
I'm looking for something where I can blur the different layers of sprites (or each sprite individually) to different degrees. Sorry if I was not clear about that.
Horrible answer. Didn't even answer the question, and was toxic while doing it. The most unhelpful of all unhelpful answers
Answer by TylerD14 · Aug 04, 2021 at 04:15 PM
I used to have this problem, I used shaders to blur sprites.
Answer by Allan-MacDonald · Aug 04, 2021 at 06:14 PM
check asset store for "UI blur" there is free shader asset and documentation
Your answer
![](https://koobas.hobune.stream/wayback/20220612162200im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to blur a 2d sprite with transparency? 0 Answers
Blur 2d Sprite 0 Answers
Can't see button over sprite. 1 Answer