Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2019.4.30f1
2020.3
2021.2
2022.1
2022.2
Issue ID
1406796
Regression
No
Objects are rendered black in the Scene view when the data of the vertex buffer of the Mesh is set via script
Reproduction steps:
1. Open the attached 'qTangents Reproduction Project' project
2. Open the 'Sample Scene'
3. Make sure the 'USE_WEIGHTS' field is set to True in the 'ModelPostprocessor.cs' script
4. Reimport the 'ExampleAssets' folder
Expected result: All objects are rendered in color
Actual result: Some sides of objects in the Scene view are rendered black
Reproducible with: 2019.4.36f1, 2020.3.30f1, 2021.2.14f1, 2022.1.0b10, 2022.2.0a6
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
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
Resolution Note:
When BlendIndices and BlendWeights are used in a vertex layout Unity requires a specific data layout. The Vertex position and normal must be in the same stream, and blend weights and indices must be in their own stream, and the vertex position and normal are required to be 3 components in size. This change is done on load, while the on disk data matches what is requested. The layout is required for Unity's skinning code to use the model data, and we can not detect at load time where the model is being used, nor is the user prevented from reassigning the model to a SkinnedMeshRenderer, thus we do the safe thing.