Search Issue Tracker

Fixed in Unity 5.2.4



Found in


Issue ID




[AssetBundles/Shaders] With "Optimize Mesh Data" enabled, vertex colors are stripped from meshes in AssetBundles




Priority: 3Not yet prioritized for a release


Severity: 3Secondary functionality broken

Steps to reproduce this issue:

1. Open the attached project
2. Open 'Main' scene
-The scene has mesh with vertex colors which is build into an asset bundle
3. In Player's settings make sure 'Optimize Mesh Data' is enabled
-In BuildBundles script make sure 'BuildTarget' matches the testing environment
4. Build asset bundles(assetBundleVertexColorTest->Build bundles)
5. Play the scene
6. Notice white plane in the scene
7. Disable 'Optimize Mesh Data'
8. Rebuild asset bundles
9. Play the scene
10. Observe that the plane mesh now has the vertex color data as expected

Comments (5)

  1. 9f0d5120f6dc3687ab6d3513123b4cce?d=mm


    Dec 31, 2018 02:22

    if that mesh catch small size and your particle system hold that mesh not in many Asset Bundles, you can make that mesh and particle system in same asset bundle that will work fine with "OPTIMIZE MESH DATA" option.

  2. 9f0d5120f6dc3687ab6d3513123b4cce?d=mm


    Dec 31, 2018 02:10

    yeah comeback in 2018.2.9f1.

  3. 8e1ddce300554ef27d8e9e0c0a8abb0d?d=mm


    Oct 12, 2018 19:00

    I'm getting this on 2018.2.9f1, was there a regression?

  4. 8c4ccb1ee6d4ca523432d57f0bd35598?d=mm


    Feb 10, 2017 07:37

    this issue still exist in 5.3.5f1...mesh alpha vertex color have the same problem

  5. F4f819806c1c6a1dab5add1c3c8755dd?d=mm


    Mar 25, 2015 23:02

    This - exactly - /hurts/ our use-case too...

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.