Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2021.2
2021.2.0b13
2022.1
Issue ID
1369377
Regression
No
"Sequence contains no matching element" error thrown when changing Scene View Render Mode to Shaded via shortcut
How to reproduce:
1. Open up any project
2. Navigate to "Edit" -> "Shortcuts..."
3. In the "Shortcuts" window select the "Scene View" category
4. Find the "Render Mode/Shaded" command and assign it a shortcut key
5. Select Scene View and click the set shortcut key
Expected result: the Scene Render Mode is changed to "Shaded"
Actual result: Shading mode doesn't change and "Sequence contains no matching element" is thrown in Console
Reproducible with: 2021.2.2f1, 2022.1.0a14
Could not test with: 2019.4.32f1, 2020.3.22f1, 2021.1.28f1 (Render Mode commands not available in the Shortcuts panel)
First lines of the error:
InvalidOperationException: Sequence contains no matching element
System.Linq.Enumerable.Single[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) (at <740fe367d2db47309969ab8aa37e7754>:0)
UnityEditor.SceneRenderModeWindow.GetBuiltinCameraMode (UnityEditor.DrawCameraMode drawMode) (at <6bba75ed57cb4aab97e7ea7a8713b0aa>:0)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Duplicate External Textures start appearing when a Texture created with "CreateExternalTexture" is modified causing Memory Usage spikes on VisionOS
- Silent crash when using a "Blend Shape" in a "Skinned Mesh Renderer" to move vertices to Vector3.positiveInfinity, and "Occlusion Culling" is baked
- Some Prefab Source and Override content bounds are misaligned
- The Package Manager's "install packages by..." panels break when Domain Reload is triggered, and the panel is open
- Crash with multiple stack traces when leaving a docked VFX Graph open
Add comment