How to reproduce:
1. Open the “ReproProject.zip“ project
2. Open the “SampleScene“
3. Open the “Window > XR > AR Foundation > XR Environment“
4. Observe the Console window
5. Clear the Console window
6. Enter the Play Mode
7. Observe the Console window
8. Clear the Console window
9. Exit the Play Mode
Expected result: No errors
Actual result: Errors “State comes from an incompatible keyword space“ and “Keyword state size mismatch ([_] vs [_] keywords)“ are shown
Reproducible with: 6.0.6 (6000.0.62f1), 6.3.0 (6000.0.62f1, 6000.2.11f1), 6.4.0-pre.1 (6000.0.62f1, 6000.2.11f1, 6000.3.0b9, 6000.4.0a4)
Reproducible environment: macOS 15.7 (M4 Max), macOS 26.0.1 (M2)
Not reproducible environment: Windows 11 Pro (22H2)
Note: The reproduction with steps 3 only happens one time after the project is reopened (Reimport is performed), and the reproduction with steps 6 happens consistently
Errors:
State comes from an incompatible keyword space
Expected: From shader: 'Simulation/Standard Lit' Keyword count: [_] Keywords:
Keyword state size mismatch ([_] vs [_] keywords)
KeywordSpace: From shader: 'Simulation/Standard Lit' Keyword count: [_] Keywords: