- Home /
Replace all Materials in Project
Good morning,
I'm using Revit to generate geometry for realtime visualization in the Oculus. I'd like to be able to quickly replace the materials from Revit/Max with Substance Materials in Unity but the Revit geometry is fragmented so that the building's facade might be broken into 20 different pieces- a pain to manually change each.
What I'm looking for is a way to select a material in the editor or browser and replace it everywhere with a substance material. For example, I may have a basic brick material/texture from Revit, "brick_old1" and I want to change it everywhere to be a substance material I select, "kickass_pbr_brick_9000", how can I do that quickly?
For bonus points, I would love to be able to script a simple table that automatically replaces all the materials when the imported .fbx from revit is reloaded into Unity. Such a table would have a column of material names to look for (ie prj_brick, prj_stucco, prj_gypsum) next to a column of materials to always replace those materials with (ie pbr_brick, pbr_stucco, pbr_gypsum). This would mimic a key ability of Lumion, an alternate 3d engine for visualization, and be very valuable to people in my field.
Thank you!
I think you could just edit that material, and everything using that material automatically updates.
Answer by 265lutab · Jan 19, 2016 at 07:40 PM
or you could probably use this. :) http://wiki.unity3d.com/index.php/MaterialReplacer
Your answer
![](https://koobas.hobune.stream/wayback/20220613200627im_/https://answers.unity.com/themes/thub/images/avi.jpg)