Search Issue Tracker
By Design
Votes
0
Found in [Package]
4.0.4
Issue ID
1143495
Regression
No
ProBuilder Mesh loses vertex color information when doing unrelated operations
How to reproduce:
1. Open the attached project in the OC.
2. Select "Cube" in the Hierarchy
3. Move it with a Transform tool.
4. Press CRTL+Z to Undo the position
Expected result: Mesh keeps vertices colors
Actual result: Mesh loses vertices colors
Reproducible with - 2018.3.13f1, 2019.1.0f1, 2019.2.0a11
Could not test with - 2017.4 (too many errors)
Package versions tested: 3.0.0 - 4.0.4
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
- Crash on AudioMixer::GetFMODChannelGroup when entering Play Mode in a specific project
- Prefabs with "Flags" enum properties result in "IndexOutOfRangeException" when trying to commit/revert
- The Camera first person mode in Cameras overlay is greyed out and not clickable when the Editor is restarted with the Game View focused
- Scene View doesn't select the Canvas when it's clicked with the View Tool
- Transform fields are impossible to edit when Inspector window is resized
Resolution Note:
The vertex painting tool in the project is applying color values directly to the MeshFilter's shared mesh. ProBuilder by design overwrites the values on that mesh, meaning any modifications made to the mesh will be lost. See the Scripting API Overview for more information on why https://docs.unity3d.com/Packages/com.unity.probuilder@4.0/manual/api.html.
To apply vertex colors on a ProBuilder created mesh, you should set the `colors` property on the `ProBuilderMesh` component. See https://docs.unity3d.com/Packages/com.unity.probuilder@4.0/api/UnityEngine.ProBuilder.ProBuilderMesh.html#UnityEngine_ProBuilder_ProBuilderMesh_colors