Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by AseemBansal · Sep 20, 2013 at 05:14 PM · materialinstanceunity 4.2

Applying an instance of a material to a cube

I am new to Unity and was going through the tutorial videos on scripting. The first one shows that in Mesh Renderer a material by the name Default Diffuse(Instance) is applied on the cube. It is seen at 1:33 and later time.

I tried doing that in Unity 4.2 but couldn't find how to apply an instance of material to the cube. How can that be done?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by BrigadeJosh · Sep 20, 2013 at 05:38 PM

Ok, in the editor this time.

If you have a material created already in your project window, the simplest way is to drag and drop that material directly onto the object. You can drag it onto the object in the scene view, or you can drag it over the object's name in the Hierarchy window.

If you want/need to be more specific about the material's placement: Click on the object in the scene view or the hierarchy, and it's information will pop up in the inspector window. From there, find the "Materials" field on the MeshRenderer like you saw in the video. Click that and it will drop down to show you "Element 0". You can either drag and drop your material onto that element 0, or click the small circle to the right and it will bring up a window where you can pick from any material available to the project.

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image BrigadeJosh · Sep 20, 2013 at 05:46 PM 0
Share

I am assu$$anonymous$$g you mean in script, since you are talking about the scripting tutorial. Also, this is C#

avatar image AseemBansal · Sep 20, 2013 at 06:12 PM 0
Share

No, I meant in the user interface. The video was about scripting but it was shown applied in the user interface. It wasn't shown how it was applied. Just that it was already applied.

avatar image BrigadeJosh · Sep 20, 2013 at 06:32 PM 0
Share

Ah, ok, that was actually my first whole response. I deleted it when I reread the question and saw the scripting tutorial part again xD - I'll post up a new answer

avatar image BrigadeJosh · Sep 20, 2013 at 06:39 PM 0
Share

I'm new to the answering forum, apparently I can't post 2 answers to the same question. So I just edited my answer above. Is that what you're looking for?

avatar image AseemBansal · Sep 21, 2013 at 08:23 AM 0
Share

I knew how to apply a material to an object. The video shows that the material on the object is "Default Diffuse (Instance)". The Instance in the brackets got me confused. I was asking about that. If I apply a material on an object then when I change that object's material the same change will go to the original material's properties also. I wanted to know how to apply an instance of the material.

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

16 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Material doesn't have a color property '_Color' 4 Answers

How can I set the material on an instance after creating it? 1 Answer

iTween vs GoKit 1 Answer

how do i create material instances without errors 4 Answers

Using Same FBX to load multiple, but want different Color Settings on each, how to do this? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges