Search Issue Tracker
Fixed in 2017.1.0f3
Votes
3
Found in
5.6.0f2
Issue ID
896692
Regression
Yes
OnPostRender executes at the wrong time ignoring Camera depth if Viewport Rect is not default
When using a multiple camera set-up to render individual parts of the scene, using OnPostRender will run scripts at the wrong time if the attached Camera has Viewport Rect set to anything but default (0,0, 1,1)
In this current example, the OnPostRender script from Camera 50 runs last overlapping everything else, instead of being rendered over by Camera 75.
If Viewport Rect is set to default on Camera 50, everything functions normally (Camera 75 renders over Camera 50 with a white screen).
Steps to reproduce:
1. Open attached project
2. Go to play mode
3. Select Camera 50 and observe Viewport Rect settings
4. Set Viewport Rect to default (X = 0, Y = 0, W = 1, H = 1)
5. Observe how screen turns white (Camera 75 renders over the screen correctly)
Reproduced on v 5.6.0f3 , 2017.1.0a5
Regression from v 5.5.3f1
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
- Sprite Masks affect Sprite Renderers outside their range when a Light2D is present with specific Target Sorting Layers selected
- URP Lens Flare is rendered in the wrong position when Render Graph Compatibility Mode is enabled and Render Scaling is not 0
- Editor crashes on DrvPresentBuffers when loading RenderDoc while using OpenGLES 3.0 or OpenGLES 2.0 Graphics API
- [Test Runner] Incorrect name under Window > Panel after project restart
- [iOS] Crash when using fallback fonts created at runtime
dofallwn
Jul 05, 2017 18:34
Has this been resolved, having this, or an extremely simliar issue, when we upgraded to 5.6.1sp1. It says resolved/fixed, any idea when this was fixed?
dofallwn
Jul 05, 2017 18:34
Has this been resolved, having this, or an extremely simliar issue, when we upgraded to 5.6.1sp1. It says resolved/fixed, any idea when this was fixed?
theOtherHolmes
Apr 28, 2017 01:40
Having the same issue. I have two cameras with custom viewport rects and they render on top of everything, no matter what. But when set back to default, they render in the proper order.