16
2016
Grayscale Image Effect with Exclude Layers
Testing grayscale image effect with added ExcludeLayers option (*just took the script parts from CameraMotionBlur effect, since it supports excluding layers)
Instructions:
– Attach the script below to your camera *You need to import default effects package first (Assets/Import Package/Effects)
– Select excludeLayers (by default its Nothing)
– Set your excluded gameobjects to that layer
Shader source:
https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Scripts/ImageEffects/GrayscaleLayers.cs
Related Posts
9 Comments + Add Comment
Leave a comment
Recent posts
- MotionVector Effect: Object “disappears” when paused
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
Recent Comments
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
How to get this to work with a UI canvas , to make different parts of it grayscale?
i think the old image effects wont affect UI so would need to find some other ways to do it..
this one says screen space canvas might work?
https://answers.unity.com/questions/1307441/stop-post-processing-effects-on-ui.html
Can you send me the script or upload it somewhere else?
The link to it is unavailable
fixed the link!
The link is broken again master
ohoo github links are the worst : ] fixed again.
*actually suggested github last year that the 404 page is misleading, looks like whole repo is gone.. pretty sure github could resolve the missing filename from updated repo also, or suggest to search with it..
Thanks master! The response was very fast! I was expecting a reply but a day after or so, very nice! 😀
hi, very cool script
but is it possible to make it work with UI ?
Using Command Buffers in Unity: Selective Bloom
https://lindenreid.wordpress.com/2018/09/13/using-command-buffers-in-unity-selective-bloom/