Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 shepsaus000 · Apr 22, 2016 at 05:48 PM · beginnermaterialstexturesmultiple

How can you get multiple materials/textures on the same object in unity 5?

I have a bookshelf object that has a single material placed on it currently. However, I would like to have two textures on it placed on different spots that are visible at the same time. Basically, I want a specific texture for the frame of the bookshelf, and another for the inside of it, but I do not know how to do it.

I have tried figuring this out by searching the web, but the end results of each thing that I've done doesn't satisfy what I wan. Either that, or the ways described to go about doing this are way too confusing for someone like me who hasn't dealt with multiple textures up until this point (or even textures in general really).

Comment
Add comment · Show 3
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 MakakWasTaken · Apr 22, 2016 at 05:57 PM 0
Share

What I suppose you want is multiple UV maps, what program are you using to make your models?

avatar image shepsaus000 MakakWasTaken · Apr 25, 2016 at 03:21 PM 0
Share

Sorry I took so long to reply back. The modeling program I'm using is Blender. Also, what are UV maps?

avatar image Cherno shepsaus000 · Apr 25, 2016 at 03:48 PM 1
Share

UV mapping controls how a texture is applied on a mesh's surfaces. Blender, like most 3d modelling applications, lets you create and edit the UV mapping of a mesh. This, however, is not specific to Unity and thus outside of the scope of Unity Answers. Blender UV mapping tutorials are readily available on the net.

When generating a mesh from code in Unity, it is possible to assign triangles to one or more submeshes, each of which corresponds to one material. The User $$anonymous$$anual and Scripting API has more information on this.

2 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Firedan1176 · Apr 25, 2016 at 03:51 PM

You can have multiple materials on the same object in Unity under the Mesh Renderer component. However, keep in mind that if you have multiple materials, that also means that your computer is accessing 2 files. What I would suggest you do is to cbake textures in your 3D modeling application (Blender/Cinema 4D/Maya). A UV map will take textures on your models in Blender and will put them all into an image document that can be applied inside of other programs (known as baking textures). I am not going to explain how this is done specifically, but I am sure you can find tutorials on how to create UV maps or Bake Textures inside of Blender.

Comment
Add comment · Show 1 · 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 SnooksV3 · May 10 at 09:19 PM 0
Share

This is in fact not correct.

avatar image
0

Answer by SnooksV3 · May 10 at 09:21 PM

Baking is the same as applying materials to your object in Unity. It still uses multiple materials.

In order to UV map separate materials in Unity, you have to assign them a new material in your modelling program, thus the issue is still at hand.

What you need to do is separate your objects in your modelling program. Reducing the draw calls to only 1 or 2 for the "child" objects.

If you do this, make sure your colliders are also separate meshes on the root of the object, as disconnected seems will lead to issues in Unity.

The other approach is using a texture atlas if it suits your game.

Comment
Add comment · 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

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

47 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 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 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

Multiple Texures on one mesh? 1 Answer

Apply Materials in Blender or Unity ? 2 Answers

fbx import, .fbm folder created but no textures assigned to materials 0 Answers

Multiple Shaders vs. Single Texture - Please help me overthink this. 2 Answers

Materials, textures and animations import question. 0 Answers


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