Hello, i have a problem with a post process highlight material I’m using.
The project is using a default post process material that makes the pixelated effect, on top of that there is another highlight post process material that only works when you look at certain objects.
The problem is that the outline material works in the editor but when I build the package won’t show at all.
Oh man, I hate build errors. They’re such a pain to try and diagnose.
My first thought- what platform are you running this on? You may be getting issues with the custom depth depending on the platform. Or maybe even a view size is an issue if you’re in VR.
I would suggest setting up a system to debug this material in-build to figure out where the issue is coming from, otherwise you might just be guessing and checking for a while. I would suggest using lerps and the DebugScalarValues node to make sure you’re able to read information from the different aspects of your material.
Something like this, though probably with a few more debugs:
Then, either make a few versions of the material with different debugs turned on and swap between them dynamically, or create a dynamic material and change the parameters in-game. This should help you figure out where your bug is coming from.