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 Kaelsin · Jun 03, 2015 at 05:25 AM · materialsfbxmappingfbximportersubstance

Material to Mesh Mapping for FBX

I have a custom OnAssignMaterialModel script that assigns specific materials within my project to the model based on the name of the material that is coming out of Maya. My script is working great, and doing everything that I want it to do, but I have noticed a problem. When I reimport that fbx after creating some new materials, I will see them get assigned to that model just fine on my screen. However, when I push that model up to our version control and someone else pulls down my changes, they will see that model in the same state they had originally had it in. They then have to do a reimport of that model themselves, so that the script will run once again, in order to see the correct materials on that model.

I had originally assumed that the mapping for which material is assigned to each element within each mesh of the model would be contained in the meta file, but after looking at the meta file it is obvious that isn't the case. Which makes it very painful to work with across multiple work stations when each model takes 8-10 minutes to import.

Where does the information live that is mapping which material is assigned to an element on a mesh when you import in an FBX?

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
1

Answer by Binxalot · Jun 03, 2015 at 07:01 PM

Are they putting the models on to the scene as prefabs or directly dragging the fbx model to the scene? What I have to do to see changes to a fbx is make a prefab first, then when I update the mesh in the project I have to drag the updated mesh to the prefab object in the project view and the updated changes then show on the prefab in the scene

.but.

If I just drag a fbx without it being a prefab, Unity sort of makes a phantom copy of the original file that lives on the scene and is somehow separated from the mesh in the project. I wish I had a more technical explanation to give you of why this happens, I just know it does. I'm dealing with it now as I updated my unity 3 project to unity 5.

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 Kaelsin · Jun 04, 2015 at 02:14 PM 0
Share

We are dropping the FBX file directly into the scene. This should be using the "prefab" that unity makes directly for you upon importing the model into the project.

The problem that you will most likely see by making the model into your own prefab and then dropping that into the scene, is some disconnects when you attempt to add new geometry to that model. The new prefab that you made will not take any of this new geometry into effect as it already has its entire hierarchy saved and the meshes that each game object maps to.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Can't edit the model materials,Can't edit the model materials 0 Answers

Unity material pipeline 1 Answer

share or reassign materials 0 Answers

Animation Root Motion Problem 0 Answers

Maya/Unity FBX Round-trip Not Working 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