Basic reproduction steps:
- Set up a Unity project with the "Addressables" package installed
- Create a new Addressables Group
- Set up a Perforce workspace
- Connect unity to perforce in Edit > Project Settings > Version Control
- Submit the project to Perforce so the group files become read-only on your disk
- Select the group in the "Addressables" window (so its properties are actively displayed in the Inspector window)
- Rename the group in the "Addressables" window
- Observe the Console
Actual result: "Collection was modified" exception is thrown
Expected result: no exception is thrown
Reproducible with: 2.10.1 (6000.3.10f1)
Reproducible environment: Windows 11
Not reproducible environment: No other environments tested
Workaround: The customer successfully bypassed the exception by appending “.ToList()” to create a copy of the collection before iterating: “foreach (var schema in m_Schemas.ToList())”
Note: Not reproduced by CQA (Wasn't able to reproduce the issue from scratch with the customer’s packages and editor version)