Unity Issue Tracker - "Duplicate keywords" error appears when entering “_” and “__” in Graphics Keyword Declaration Overrides
Closed
UUM-131526
"Duplicate keywords" error appears when entering “_” and “__” in Graphics Keyword Declaration Overrides
Unity: Shader System
As Designed
6.5.X
6000.5.0a4 onwards
6.4.X
6000.4.0b3 onwards
Both `_` and `__` (and any number of underscores) are treated as "no keyword".
Reproduction steps:
1. Create a new project
2. Edit > Project Settings… > Graphics
3. Expand Keyword Declaration Overrides foldout and press “+” button
4. Enter “_" and “__” values in the Keyword set field
Actual result: "Duplicate keywords: _” error appears below the Keyword set
Expected result: No errors or warnings appear
Reproducible with: 6000.4.0b3, 6000.5.0a4
Not reproducible with: 6000.3.3f1, 6000.4.0b2
Couldn’t reproduce with: 6000.0.65f1 (No Keyword Declaration Overrides)
Reproduced on: macOS Tahoe 26.1 (M4), Windows 11
Prioritise and Follow this issue
Have a workaround or additional info about this issue?