Post Processing Stack Error (Ambient Occlusion)
Dear Unity,
we recently moved across to the ‘Post Processing Stack’ plugin and are getting some strange behavior.
Under the Console there is a repeating error ‘even before running’ saying:
> Invalid pass number (1) for> Graphics.Blit (Material "(Unknown> material)" with 1 passes)> UnityEngine.GUIUtility:ProcessEvent(Int32,> IntPtr) Invalid pass number (3) for> Graphics.Blit (Material "(Unknown> material)" with 1 passes)> UnityEngine.GUIUtility:ProcessEvent(Int32,> IntPtr) Invalid pass number (5) for> Graphics.Blit (Material "(Unknown> material)" with 1 passes)> UnityEngine.GUIUtility:ProcessEvent(Int32,> IntPtr) Invalid pass number (6) for> Graphics.Blit (Material "(Unknown> material)" with 1 passes)> UnityEngine.GUIUtility:ProcessEvent(Int32,> IntPtr)
This seems to be related to Ambient Occlusion, when disabled the error stops.
The error happens even when using a completely new scene and just adding the ‘Post-ProcessingProfile’ to the camera.
Oddelly, every now and then when I close down Unity and re-open it, sometimes I get no errors and can run the game with a working Ambient Occlusion effect but after stopping or re-running the game, the error starts up again and the Ambient Occlusion stops working.
I have done many searches online but can't seem to find much in this area.
Any help much appreciated.
**Plugin:** Post Processing Stack v1.0.4
**Using:** Unity 2017.2.0f3 (64bit)
**Platform:** PC
Kind regards,
Thor
↧