As Base for the sprinkles there are 5 deformed Cylinders which are placed randomly on top. The Material for these Cylinders is equal and is set to choose a random color, which it does perfectly, as you can see.
I want to export the whole thing as a single mesh for using it in unreal engine. My problem now is, that I actually cant get it to work. If I export the Donut as it is right now, the Sprinkles arent there in the fbx file. If I apply the modifier (which isnt really the sense of it, since I want to make changes later), the sprinkles disappear inside Blender.
I can make the Instances real, which works perfectly fine. I can export now, but of course have then more then 500 different Models, and also the sprinkles havent got any color, which is weird. If I join them (CTRL + J), I have a model in Blender which looks like this:
It seems to have distribute the random color not on the different cylinders, but on each of them.
If somebody could help me and probably some others since the feature is relativly new, I would be very grateful.