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
- "Browse" button for Xcode in the "Build Profiles" window is too big
- USS styles fail to inherit correctly when contentContainer is overridden in a custom control
- Copying and pasting Animator Transitions leads to unexpected behaviour
- "ShaderGraph" misses a space in the "Project Settings" section
- UI Builder inspector’s checkbox fields can be activated when clicking anywhere in the value field
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.