Reproduction steps:
1. Open the attached “BugCustomDrawModeExeption.zip” project
2. Open the “SampleScene”
3. In the Scene view toolbar, click on ‘Debug Draw Mode’ (The bug icon)
4. Observe the Console and the Scene view
Expected result: The draw mode is enabled and no errors
Actual result: The draw mode is not enabled and “InvalidOperationException: Sequence contains no matching element” error
Reproducible with: 6000.0.26f1, 6000.1.0a3
Couldn’t test with: 2021.3.46f1, 2022.3.52f1 (The custom Camera Mode did not work at all or worked inconsistently)
Reproducible on: Windows 11
Not reproducible on: no other environment tested
Notes:
- The custom Camera Mode works at first, but after some time it just starts throwing exceptions
- The custom Camera Mode ('Positions As Colors') appears to work correctly if selected from the dropdown next to the ‘Debug Draw Mode’ icon (but is inconsistent)