Fade game object/Easy Transparency on The Unity Asset Store:
This are two ways of making your objects between camera and player transparent. One uses dithered effect you can easily add to your custom hlsl shader or shader graph. Other uses unity default URP shader transparency.
Technical info:
The script is based on detecting colliders between camera and the player, so that the script works properly each object has to have collider on it.
Package includes:
Multiple objects fade at the same time
Detecting object when inside collider
Works with standard and skinned mesh renderers
Lets you choose between multiple ways of detecting mesh renderes in object hierarchy
Easy to add a graph with a dither effect that affects the shadows according to your will
Fade game object/Dithered Transparency
To make the dithering effect work, you must add it using Shader Graph or hlsl code.
You can find easy examples of implementing dithering in DitherShaderGraph and in DitherTest.shader file, and dither function to use in code is included in file called Dithering.hlsl
Fade game object/Easy Transparency
To use this package you do not need to modify any shaders, you can use default urp shaders.
Pros:
no need to make custom shaders
Cons:
shadows disappear when object is faded
faded object may look weird becouse of the transparency sorting
Hi
I’ve installed the free version and I can’t get it to work, or even show an error. Nothing happens. I’ve attached the Easy Object Fade script to the main camera. Here are my settings:
However when the player moves behind any object, nothing happens. The player is blocked and the blocking object doesn’t become transparent.