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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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