Hello, So I recently started experimenting with the new Google Poly api. It’s great!
I see that Google is (as they should) combining the meshes, so in the example below, all the objects share the same mesh.
What I’m wondering about is how Google is applying colors to the mesh. The object shown uses a single material called “BlocksPaper”, and it uses the shader “Blocks/Basic”. I don’t see anything anywhere where the 6-7 colors shown in the photo are set.

The Material only has a MainColor, so if I adjust this color to red, everything in the mesh turns red:

But I still don’t understand where the various colors are coming from. I ask because I need to save the Google Poly objects locally and load them later (so I don’t need to call the API each time). Are the colors somehow stored in the mesh itself? I thought that the mesh only stored the mesh verticies, but perhaps I’m wrong about this. Can someone please explain?
On a side question, I’d also love to know how to get this result from within unity. Say I have a blue sphere, and a red cube (both using the same material), and I combine the meshes (I have a script that does this). I’d love to know how to combine the meshes, but preserve the coloring of the sub pieces. Currently when I combine meshes, I’m saving a different mesh for each material/color combination.
If anyone has any ideas about this questions, I’d appreciate your help! thanks,