Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

vertex color in a mesh

Discussion in 'Editor & General Support' started by ghiboz, Jan 28, 2019.

  1. ghiboz

    ghiboz

    Joined:
    Sep 7, 2012
    Posts:
    465
    hi all!
    I have this issue:
    I have a fbx into a `Resources` folder and I load runtime using `Resources.Load` function...
    this mesh has vertex colors.. if I launch from unity editor it works correct, the sharedMesh.colors has a length like the vertex count.. but if I create a build, the `sharedMesh.colors` has a count of 0...
    how can I fix this?
    I'm using unity 2017.4.17f1 lfs

    thanks in advance
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    can you test if disabling this "optimize mesh data" helps?
    upload_2019-1-28_11-4-8.png
     
    ghiboz likes this.
  3. ghiboz

    ghiboz

    Joined:
    Sep 7, 2012
    Posts:
    465
    thanks @mgear I removed the optimization and works!!!
    ;)