Search Issue Tracker
By Design
Votes
0
Found in [Package]
3.2.0
Issue ID
1389419
Regression
No
Game build appears black when Post Processing layer on Camera is used
Reproduction steps:
1. Open user's attached project
2. In Hierarchy go to the Main Camera object
3. In the inspector make sure that Post Processing Layer is enabled
4. Enter Play mode and inspect the view
5. Exit the Play mode
6. Build the project
7. Run the build and inspect the view
Expected result: Running game build shows game objects the same way Play mode does
Actual result: You can only see black background and UI
Reproducible with: 2.3.0(2020.3.26f1), 3.0.3(2020.3.26f1), 3.1.1(2020.3.26f1), 3.2.0(2019.4.34f1, 2020.3.26f1, 2021.2.8f1, 2022.1.0b4)
Could not test with: 2.2.2(2019.4.34f1) (File may be corrupted or was serialized with a newer version of Unity.)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
This issue is caused by the “SobelOutlineCg” shader missing from the build. The shader is not included because it is not referenced by anything in the scene or Resources folder (the shader is loaded in script using Shader.Find). The Unity documentation explains that this can be fixed by forcing the shader to be included using Edit>Project Settings>Graphics>Always Include Shaders, or by putting the shader in the Resources folder. See https://docs.unity3d.com/ScriptReference/Shader.Find.html