Steps to reproduce:
- Open the “SCGI Bug.zip” project
- Open “SampleScene”
- In Edit > Project Settings > Player > Other Settings, untick Auto Graphics API for Windows and put Direct3D12 first
- In Player settings, turn Static Batching off
- In Graphics settings, set the Default Mesh Buffer Target setting to 'Raw'.
- Add the 'Surface Cache Global Illumination' Renderer Feature to Settings/PC_Renderer.asset
- Add the 'SurfaceCacheMeshDestroyRepro.cs' script to the Hierarchy
- Enter Play Mode
- Observe the Console
Actual result: “ArgumentException: An item with the same key has already been added.” is together along with a lot of other different errors are thrown
Expected result: No errors are thrown in the Console
Reproducible with: 6000.7.0a4, 6000.7.0b3, 7000.0.0a1
Could not test in: 6000.0.84f1, 6000.3.26f1, 6000.6.5f1, 6000.7.0a3 (Errors regarding finding DefaultMeshBufferTarget)
Fixed in: 6000.7.0b4, 7000.0.0a5
Reproduced on: Windows 11 Pro (25H2)
Not reproduced on: No other environment tested