I have painted my meshes with vertex color in blender, now, i´m looking for a way to export it and then import into unity…
is there any way to achieve that?.. (i don´t have a credit card to buy vertex color paint tool from asset, so i´m forced to use the blender itself…)
Put Blender in object mode and save the blend file. You can export it from blender as an FBX and then import to Unity. Unity will create a materials file from the vertex colors you don’t need to do anything special.
I can confirm this works without any special actions in Blender.
Most of my game world is based on vertex colors - I’m using them with a special Unity shader as texture splatting weights. Thanks to Blender’s node-based material system, I even get a perfect preview of how it will look in Unity while painting
Are you using a shader that supports vertex colors? I don’t think any of Unity’s default shaders support vertex colors- so the vertex colors are probably there, they’re just not being used for anything. You’d need to find such a shader or create your own.
For anyone trying to make this work, to be able to at least get the vertex colors to be imported by unity, your mesh needs to have ‘Face Corners’ and ‘Byte Color’ vertex color type attributes… none of the other combinations worked for me.
If anyone is reading this, I could only make vertex colors work from Blender to Unity, by deleting the color attribute, vertex paint it so a new color attribute is added, and then baking the texture onto it, but don’t ask me why this works and not simply creating a vertex color attribute from scratch
Works! imported .blend file directly to unity and made a basic vertex shader graph (create a vertex color node / plugged the output into : fragment / base color and boom!