Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
4.4.0
Issue ID
1277475
Regression
No
ProBuilderMesh faces generated via script are not counted when using ProBuilderMesh.selectedFaceCount
Reproduction steps:
1. Open user's attached project "SkatePrototypeV2.zip" and scene "TestScene1"
2. In Hierarchy window, select "Ramp2_EdgeMesh" GameObject
3. In Editor menu, click Tools -> Dimensions Overlay -> Show
4. In UV Editor window, Face Selection mode, select any face
5. Observe Console window
Expected result: "ProBuilderMesh.selectedFaceCount" and "MeshSelection.selectedFaceCount" have the same face count
Actual result: "ProBuilderMesh.selectedFaceCount" is not counted
Reproducible with: 2020.2.0b3 (ProBuilder 4.4.0)
Could not test with: 2018.4.27f1, 2019.4.10f1, 2020.1.6f1 (earlier version of HDRP breaks project)
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
- Skinned Mesh Renderer with multiple Animator Components does not render when "Optimize Game Objects" is enabled
- [iOS]Certain characters are not displayed when using iOS devices with 18 OS and newer
- Trees do not render in 'Unity Terrain - URP Demo Scene'
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
Resolution Note:
Looks like the issue is that the sharedVertex cache is invalid after the ProbuilderEdgeworksData is applied to the mesh. Adding
mesh.sharedVertices = SharedVertex.GetSharedVerticesWithPositions(positions);
after the positions assignment should address this.