Search Issue Tracker
Won't Fix
Votes
2
Found in
5.4.1f1
Issue ID
834056
Regression
No
Camera renders every object instead of the specific layer object
Reproduction steps:
1. Open the attached project in Unity
2. Open the Bug Example scene
3. Select the Default Camera gameObject.
4. In Camera Preview observe that it shows all of the Canvas objects, while some of them have different layers than the Default Camera gameObject
5. Select the Camera1 or Camera2 gameObject and observe that they don't display Canvas objects with respective layers.
Expected result: Default Camera, Camera1 and Camera2 only render those objects, which are on their layers.
Actual result: Default Camera renders all images, even if some of them are on different layers.
Workaround:
1. In the Hierarchy, create three Canvas gameObjects;
2. Attach UI images to each of them;
3. Change their layers to Default, Camera1 and Camera2;
4. In the Inspector, set Render camera to particular camera, which has to render the image.
5. OR open the attached project https://fogbugz.unity3d.com/default.asp?ixAttachment=152528&pg=pgDownload&pgType=pgFile&sFilename=UIRender.zip
The bug could be reproduced on 5.2.4f1, 5.3.6p5, 5.4.1f1 and 5.5.0b4 Unity versions.
Comments (2)
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
- UI Elements/Layout inconsistencies in the Particle System component
- The Game view and Scene view fail to render when launching the Editor with a maximized Render Graph Viewer window
- "List is empty" is poorly visible in the "Create Node" window
- [Android] GameObject with a custom shader becomes invisible when deployed with the Vulkan Graphics API
- “ReferenceError: Pointer_stringify is not defined” error is thrown when downloading a file
nitz
Dec 12, 2016 13:24
Still reproducing in 5.5.0p1.
Fastgamedev's summary is spot on.
I'm also seeing the behavior with the canvas set as a world space canvas.
fastgamedev
Nov 27, 2016 00:46
I am reproducing this in 5.4.3f1.
To summarize the bug succinctly, - GameObjects inside Canvas ignore their own layer settings and use Canvas' layer setting.
(Camera is set to Screen Space.)