- Home /
Changing material of an imported prefab in the inspector
I have a 3D object that I modeled in Maya and brought over to Unity. I want to change the material attached to the prefab because I need to instantiate my object on start, and I have the material that is currently on it on another object. I'm trying to change the material in the inspector, but I'm not getting anywhere, and because the prefab was imported from Maya, the apply button isn't showing up in the inspector. Therefore, I can't just drop the prefab into the scene, change the material, and apply the change. Does anyone know how I can fix this problem?
Answer by MochiTo · Oct 15, 2017 at 09:03 PM
The thing is, this is not a prefab in fact, it is just a model. You have to use it as a GameObject in your scene first and then you can save it as a prefab. (Drag it to your Hierarchy and then drag it to your prefab folder.) You will see, that the icon will change too. This picture shows an icon of a cube that has a white rectangle on it. The prefab icon is just a cube icon, without white rectangle.
And I also found this answer, so I believe that this question is a duplicate, but I don't know how to mark it as a duplicate... http://answers.unity3d.com/questions/12238/why-cant-i-see-the-prefab-select-revert-and-apply.html