Probuiler Vertex Paint won't apply in the build

I vertex painted this room with brown, but when I make a build the room isn’t painted.

Editor:

In the build:

How can I fix it?
I copied the Probuiler’s Vertex Color shader to make some changes on my own, it still works in editor but not in the build. Also, if I open the scene and build like that the vertex colors do apply, otherwise it doesn’t. But I have multiple scene so, it’s not a solution.

Hi @Alde-Baran, just to clarify, you don’t see any issues when using PB’s Vertex Color shader but the colors no longer apply when you use your modified version?

I made 2 tests, empty scene with only 1 mesh, one using the default PB material and the other using my modified shader’s material. Both is vertex painted.

My first try with default material with vertex paint was successful. My second test with my modified material is also successfull.
I don’t understand why it worked somehow. I thought maybe it because that scene was open when I was building. But after opening an empty scene, and building there. That scene still worked fine.

Few days later, I needed to build again. I thought everything suddently fixed, but it got broken again. I tried building while that scene was open but, didn’t worked either.

The PB version I was using is 4.2, I look up changes logs and see 5.2 is supported for 2019.4 which the Unity version I’m using.
After updating it started working again. But I’m still not sure, and afraid it can happen again.

I don’t know should I modify the main vertex color shader, instead of copying and modifying at the very start. Maybe that shader is connected to some places.

Ok, glad to hear it’s fine now. Though, let us know if this happens again (and if it’s with the modified shader - please attach it to the thread).