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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
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