Search Issue Tracker
By Design
Votes
0
Found in [Package]
Issue ID
1298955
Regression
No
Post Processing don't work on build and output null error in log
Creating post processing layer and camera is throwing a null ref.
Repo Steps:
1. Open the attatched project
2. Load 'TestScene'
3. Build and run
Expected results: The game runs with the bloom effect that it had in the editor
Actual results: There is a null ref and the bloom(and all ppv2 effects) fails to run
Note: This seeminly happens as they setup a new camera with post processing via API. On the camera, a script called 'CameraClose' L68 sets up a new post processing layer on teh camera and disables the existing one, if you comment out lines 68-71 the issue goes away. Interestingly this doesnt repo in the editor, so there must be some editmode resource loading that happens when adding a post process layer that doesnt execute in standalone.
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
- Crash on ResizeScriptingList<ScriptingObjectPtr> when passing an undeclared variable to the results parameter for GameObject.FindGameObjectsWithTag
- [Android] "Screen.safeArea.y" always returns values outside of the Safe Area when the device is in Portrait orientation
- Frame spike due to many TreeRenderer.TreeUpdated calls when repositioning terrains in large Scenes
- Crash on GameObject::RemoveComponentFromGameObjectInternal when reparenting Text GameObjects
- [IL2CPP-GarbageCollector] Changing GCMode might permanently disable GC in a multithreaded context
Resolution Note:
As described in the documentation, you need to bind the resource asset to the post process layer or it won't be able to find the post process shaders. See the additional notes here: https://docs.unity3d.com/Packages/com.unity.postprocessing@3.0/manual/Manipulating-the-Stack.html#additional-notes