- Home /
Unity 5 import Shader changed to Standard from Diffuse
Hi,
I am loading 3d models (fbx) as assetbundles in my Unity Windows app. I am trying to upgrade my Unity 4.3 project to Unity 5.2.1. I am seeing a color difference in the models in Unity 5. They are darker than the previous version.
When I compared the two versions, it looks that the objects that had the Shader as Diffuse in 4.3 now coming as Standard in the 5.2. I guess this is happening when importing the model (when creating the asset bundle).
Please let me know how I can fix this issue. I have to hundreds of models that I am importing to Unity 5.2. So manually changing them is not an option.
I have attached a sample to show the color difference.
Thanks
Answer by arcifus · Oct 29, 2015 at 01:23 AM
You can dynamically swap shaders to your liking via script. So once you load the object from the assetbundle, just assign the shader you want.
http://docs.unity3d.com/ScriptReference/Shader.Find.html?from=Material
Thanks for the reply arcifus. The issue in my case is that I have hundreds of models to be used in my app and each of these models can have hundreds of small parts(objects) some of them having the diffuser/standard shader issue. So changing the shader in a script is not going to be practical. I am looking for a way to fix this when importing the models as assetbundles. Also we really don't know which objects needs to have which shader. The client created the fbx files using Rhino and when they are loaded to our app, it should look just like it was in Rhino. This worked fine earlier in Unity 4.3. I want it to look the same in 5.2 as well.
Your answer
![](https://koobas.hobune.stream/wayback/20220612043048im_/https://answers.unity.com/themes/thub/images/avi.jpg)