jjejj87
December 12, 2019, 3:16pm
1
I am trying to have outline effect using the latest custom pass examples from here:
https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@7.1/manual/Custom-Pass.html
It works just fine in the editor but in standalone build, the screen turns grey.
Does anyone know a workaround?
Hello,
Your issue is probably caused by a missing shader in your build. Because the outline script search do a Shader.Find, it is never referenced anywhere and thus unity don’t know that it’s needed in build.
To fix your issue, you can either add it to the always included shader or move the Outline.shader to a Resources folder.
We’ll update the documentation script so the issue don’t happens anymore
jjejj87
December 13, 2019, 6:54am
3
I’ve tried adding it to always included shaders and to move the shader file to Resources folder, but still no joy.
If you build in debug mode, do you have any errors ?
jjejj87
December 14, 2019, 6:25am
5
Strange thing, I removed the shader from the Resources folder and removed the shaders from the always included list.
Then I built a standalone. Grey screen, so same as always.
Then I built it in dev mode → now it works.
Pretty strange…
So, I tried non-dev mode standalone again. Then grey screen.
jjejj87
December 14, 2019, 2:12pm
6
Another update: I reported render textures not working in this thread
I am using HDRP 7.1.6 with 2019.3
When I try to show render texture via RawImage UI, it works just fine in the editor but, nothing shows up in the standalone build.
Does anyone know if this is a known issue?
UPDATE: Looks like an old bug that came back. Can the Unity Devs confirm?
this too works in dev mode.
jjejj87
December 20, 2019, 8:13am
7
just checked with 7.1.7, same results.
Funny thing is, it used to display black screen, now it renders bright grey.
Hey,
We finally identified the error that was causing custom passes in after post process to render black/grey screen in non-dev build and the fix is coming (should be in for the 7.2.0), you can track the PR here: https://github.com/Unity-Technologies/ScriptableRenderPipeline/pull/5429
1 Like
just checked with 7.1.8 and the issue is still there. I know antoinel said 7.2.0 but just wanted to let people know as I got to test 7.1.8
Peace.