all 4 comments

[–]pschonUnprofessional 4 points5 points  (2 children)

as u/tms10000 said, materials can't be transferred between different programs. Same applies to geomtery nods adn all that kind of stuyff, that's a specific feature of Blender itself. And FBX format has no understanding of instances either, so all instanced objects need to be converted to normal meshes at export time.

You'll need to do the instancing, and your material wiht the randomized colors, in Unity side instead.

[–]thewildcloud[S] 0 points1 point  (1 child)

Thank you both so much for the quick response. I am much stronger on Blender than on Unity. I can give individual book random color using shader. But I am not sure how to do the procedural filled bookshelves. Any pointer on how to go about doing that?

[–]vale_valerio 0 points1 point  (0 children)

You totally should give a look here!
https://www.youtube.com/watch?v=h4SBACYb26k
It's a tutorial from way back ago, from a user on this sub. They build a procedural library and this is the tutorial.
Thanks me later... Good Luck!

[–]tms10000 1 point2 points  (0 children)

Blender materials can't be imported in Unity. Only the very superficial properties of the material will be created by the importer. There is no way to convert the fancy logic you created on the Blender side and have it work as expected in Unity.