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
- [Android] Performing hardware comparison using "SAMPLE_TEXTURE2D_SHADOW" results in no shadow being rendered when the GameObject is instantiated manually
- Physics.Raycast fails when a Capsule Collider at a default position is used
- [Silicon] Crash on mono_get_hazardous_pointer when disconnecting Bluetooth Headhpones while in Play Mode
- Switching Project when importing complete project does not import all assets and project opens incomplete
- [Linux] Input.mouseScrollDelta is inconsistent when limiting framerate
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.