Search Issue Tracker
Fix In Review for 12.0.0
Votes
0
Found in [Package]
12.0.0
Issue ID
1394378
Regression
Yes
Duplicating/copy-pasting last keyword in the blackboard throws ArgumentOutOfRangeException
Steps to reproduce:
1. Create a new URP project or open an existing one
2. Right-click in Project View
3. Select Create -> Shader Graph -> Blank Shader Graph
4. Open the created shadergraph by double-clicking it
5. In the blackboard click the "+" icon
6. Add two properties (like Float and Color)
7. Add any keyword (Keyword -> Boolean or Enum)
8. Try duplicating the added keyword or copy-paste it to the blackboard
Expected results: Duplicating and copy-pasting works
Actual results: "ArgumentOutOfRangeException: Index must be within the bounds of the List." error is thrown
Reproducible with: ShaderGraph 12.0.0 (2021.2.0b1), 12.1.3 (2021.2.8f1), 13.1.2 (2022.2.0a2), 13.1.3 (2022.1.0b2)
Not reproducible with: ShaderGraph 10.7.0 (2020.3.25f1) 11.0.0 (2021.2.0a1), 12.0.0 (2021.2.0a21) (property and keyword lists seem separated)
Notes:
- Seems like the issue only reproduces when trying to manipulate the last keyword in the blackboard and only if there's at least two properties before it
- Didn't test all of the properties, but doesn't seem like it matters, Float, Color, Cubemap, Matrix4 all can be used to reproduce the issue
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
Add comment