Search Issue Tracker

By Design

Votes

0

Found in

6000.0.64f1

6000.2.15f1

6000.3.1f1

6000.4.0b1

6000.5.0a3

Issue ID

UUM-129548

Regression

No

"Duplicate keywords" errors box is not shown in the Graphics Settings when duplicate keys are entered under different list items

-

How to reproduce:
1. Create a new Unity project
2. Go to Edit -> Project Settings -> Graphics -> Shader Build Settings
3. Add at least two items under the "Keyword Declaration Overrides"
4. Enter the same string in both list items
5. Observe the results

Expected results: The "Duplicate keywords" error box is shown
Actual results: No error box is show and the error is thrown only into the Console when changes are applied

Reproducible with: 6000.0.64f1, 6000.2.15f1, 6000.3.1f1, 6000.4.0b1, 6000.5.0a3

Reproducible on: Windows 11 Pro
Not reproducible on: No other environment tested

Note: The error box is shown when the duplicate keywords are entered in the same list item

  1. Resolution Note:

    The same keyword can be part of multiple keyword declaration overrides. This is because keywords are atm not restricted into a single specific keyword set. I.e. one shader could declare #pragma multi_compile FOO BAR whereas another could do #pragma multi_compile FOO BAR BAZ. To override both of these we'd need two different keyword declaration overrides to target the exact set of keywords given in each pragma. To be able to do this, the system needs to allow using the same keyword on multiple overrides.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.