I have an object made up of many objects. There are multiple materials on this object. The issue I’m having is I don’t know how to apply the material I made for a specific object on that model to that specific piece. I can do it to the model after I drag it into the scene but how do I set it on the model before I drag it into the scene so that I don’t have to apply materials to multiple instances of the object. I want a model that has all the materials applied to it before I place it into the scene.
If you find the model in the Project panel, I’m pretty sure you can make adjustments or assignments to the root model. This model is (I think) referenced by all the copies of it in the Hierarchy. However, I think that if you make changes to any of the copies in the Hierarchy, those changes will be the ones that are used for that copy.
I think.
That is correct. I just dont know how apply one to the model if is already has a material or if it does not have one at without draging it into the scene. I have a bunch of objects that need to be set up with materials before I take them into the scene. How is this done?
well, the good news is that since Unity uses the name of the material as the most basic, unifying concept, you can change one instance of that material and the change will occur to all other uses of that material, no matter where they are.
The bad news is that if you’ve already copied out your objects into your scene, you need to go into them one at a time to assign the materials you want.
If you haven’t populated your scene yet, you’re in luck. CTRL + D will make a duplicate of a base object. This duplicate will include all the material assignments. So if you set one up right first, you can go nuts duplicating it and they’ll all be the same.
Plus, if you set up the material names right, you can easily make changes later that will flow through to all duplicates automagically.
I hope that helped.
I’m still not sure on how these materails are being created. When I save a scene out of maya does it grab the material from that scene then add a prefix to it that corrosponds with the name of the file? that seems to be whats happening. What if I want to create a new material and assign it to an object. How is this done inside unity other than draging it onto an object that has been placed into a scene?