Search Issue Tracker

Fixed in 2022.1.X

Votes

0

Found in

2019.4

2019.4.21f1

2020.3

2021.1

2021.2

Issue ID

1320869

Regression

No

Mesh is shaded as black when setting BoneWeights via Advanced Mesh API

Mesh

-

How to reproduce:
1. Open the attached project's Scene labeled "BoneWeightTestScene"
2. Enter the Play Mode
3. Inspect the generated "Advanced" and "AdvancedMeshDataArray" GameObjects

Expected result: GameObjects are shaded white
Actual result: GameObjects are shaded black

Reproducible with: 2019.4.22f1, 2020.3.1f1, 2021.1.0b12, 2021.2.0a9
Couldn't test with: 2018.4.33f1 (Missing references when downgrading the project)

  1. Resolution Note (fix version 2022.1):

    Skinned meshes expect a particular stream layout (0: position,normal,tangent, 1: UVs,colors, 2: blend weights/indices). Will clarify docs and make API emit a warning if mismatching layout is attempted. Fixed in Unity 2022.1.0a2 and above.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.