Search Issue Tracker
Fixed in 2017.3.0f3
Votes
0
Found in
2017.1.1f1
Issue ID
951394
Regression
No
[2D] SortingGroup does not apply the sorting changes to its children when objects are duplicated or added dynamically
To reproduce:
1. Download attached project "BugTestSortingGroup.zip" and open in Unity
2. Open "BugTest" scene
3. Enter Play mode
Note: Observe that no Sprites are rendered on blue cube in Game window
4. Press "Fix Sort" button
Note: Observe that now Sprites are rendered
To reproduce from a scratch:
1. Create a Sprite Mask
2. Set the Sprite Mask to Custom Range from sorting order 10 to 20
3. Add as a child a SortingGroup and put the sorting order to 15
4. Add a Sprite with sorting order of 0 as a child of the SortingGroup and set mask interaction to visible inside.
Note: At this moment the Sprite is correctly inside the mask.
5. Duplicate the Sprite and move it sightly
Note: Notice that the new sprite does not appear inside the mask.
Notes:
- This issue appears on Windows and OSX
- Workaround: Sprites are being created but they do not appear because they are not taking into account the sorting group. The sorting group needs to be deactivated and activate to workaround this behavior
Reproduced on Unity 2017.1.1.p2, 2017.2.0f1 and 2017.3.0b1
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
Add comment