Search Issue Tracker
Fixed in 2022.3.5f1
Fixed in 2023.2.0a22
Votes
0
Found in
2022.2.16f1
2023.1.0b12
2023.2.0a11
Issue ID
UUM-33045
Regression
No
List.Capacity is used instead of count in ”SetSharedMaterials”
How to reproduce:
1. Open the user’s attached “SetSharedMaterialsBug.zip” project
2. Open the “MaterialBug.cs” file (Assets > MaterialBug) and comment out line 22 and uncomment line 25
3. In the Hierarchy window, select “Cube” GameObject
4. Enter Play Mode
5. Observe the Materials of the “Mesh Renderer” Component in the Inspector window
Expected result: There is one material “SwapTo”
Actual result: There is one material “SwapTo” and three 3 “None (Material)”
Reproducible with: 2022.2.16f1, 2023.1.0b12, 2023.2.0a11
Could not test with: 2020.3.47f1, 2021.3.23f1 ('MeshRenderer' does not contain a definition for 'SetSharedMaterials’)
Reproduced on: macOS 13.2.1 (Intel)
Note: Not reproducible with “sharedMaterials”
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (fix version 2022.3.5f1):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-27260
Resolution Note (fix version 2023.2.0a22):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-27260