Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 ungalyant2 · Oct 01, 2011 at 05:14 PM · materialstexturesimportingmodels

Importing Models

This is a question I've just kind of avoided asking because things have worked but I've never really understood why, now my folders are FAR too messy and things are going wrong and right and I don't know why, so I figure I'll ask as unity doesn't really seem to have extensive documentation on the subject. When importing a model what EXACTLY happens, and what is required? Does it import the materials with the model, but then you have to import the textures for those materials seperately? Do the textures get imported automatically too? Do materials all get imported into one place? Will a material only reference a texture in the same folder as it? In short what do you need to do to import a fully textured model, and is it different with animations?

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

2 Replies

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

Answer by Martijn Hendriks · Oct 01, 2011 at 05:42 PM

OK, a lot to be answered.

There are some changes that I've found in 3.4, but the official documentation can be found here.

In order to import a model in Unity you need to do several things:

  1. Your textures need to be imported in a "Textures" folder in your project in Unity. The Textures folder is something like the Resources folder. It is possible to have multiple folders with the same name of these folders and Unity will put all the files in these folders together so it creates some sort of pool. For objects (prefabs, materials, etc) that you want to instantiate through code, you need to have these objects in a Resources folder. For an automatic texture-material match for the models you want to import, you need to put your textures in a Textures folder.

  2. Your model needs to be somewhere in the Unity project (inside your main Assets folder) that you can locate it easily. Unity will then import all your materials and put them in a "Materials" folder next to the imported model. All the materials that have a texture that is inside a Unity "Textures" folder will be named as the texture and will be linked to that texture.

  3. Unity will generate a prefab that includes your imported model. Depending on what type of compression/file (Maya, MAX, FBX, Blender, etc) you can set several import settings, like if you want to generate colliders for your model, or how to import your animations attached to the imported model.

What we usually do for our modelling pipeline, is to create a folder for the specific model in one Assets/Resources folder (this is done in explorer, without Unity open). This folder is named appropriately so that we can find it easily. In this folder, we create a Textures folder and put all the textures there. Then we place our FBX model also in main folder of the model. When starting Unity, it loads in all textures and then the model, creating the Materials folder and the prefab in the designated folder. This way we have all information of one model in one place.

Hopes this helps! :)

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
avatar image
0

Answer by Deygus · Jul 12, 2012 at 04:49 AM

Also, a lot of the time, the image may not be imported on certain objects occasionally due to a glitch or error. Either way this is easily bypassed by locating the TEXMAP Image (a psd map of the painted image on the model which alot of modeling programs allow you to export separately usually) and dragging and dropping it into the " Materials " folder that was created when your model was imported into unity. You can then click on defaultMAT located in that folder, select your TEXMAP Image and apply it, it will then be applied appropriate to the UV Map within unity and added to your Model. Now your Model will have the texture you originally created for it and you will be able to visually see it in unity as well.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Blender to Unity textures are blurry. 3 Answers

Blender FBX file is all white in Unity game 2 Answers

Importing blender files brings blank materials 1 Answer

Cinema 4d material importing? 1 Answer

Models referencing textures 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