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 Hoeloe · Sep 07, 2013 at 08:02 PM · meshimportmayaobjrename

Importing .obj from Maya - mesh invariably called "default"

So, I'm using Maya as a modelling program, and I've been having this issue for a while. So far I've been able to ignore it, but as the number of different meshes racks up, it's becoming more and more of a problem. It seems that no matter what I do, Unity always imports the mesh as a prefab, containing another prefab and the mesh itself. However, both the contained prefab and the mesh are named "default", and I cannot work out how to change this. I really need to be able to give my meshes sensible names, because when selecting a mesh in the inspector, it is these that show up, which means I have a selection of many different meshes, all named "default". I'm not sure what I'm doing wrong, but I can't work out where it could be getting this from, as as far as I know, Maya has not named anything "default". Could anyone tell me how I can set the names of meshes I export from Maya? Or how to rename existing meshes in Unity?

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 Matthew Scott · Mar 24, 2014 at 03:29 PM 0
Share

Seconded, i'd like to know the answer too!

avatar image hbalint1 · Mar 24, 2014 at 11:50 PM 0
Share

i have the same problem. I drag'n'dropped the prefab to the screen, named it to something else, gave a mesh collider with the "default" mesh and made a prefab from it. So I have a prefab with different name. BUT you have to keep the original prefab because it stores the mesh.

avatar image Hoeloe hbalint1 · Mar 24, 2014 at 11:58 PM 0
Share

Yeah, that's exactly what I've been doing, but this isn't an answer to the question. The problem with this approach is that, when selecting meshes from a list (for example, for custom $$anonymous$$eshColliders), they all appear under the name "default" and it can get difficult to find the exact mesh you need.

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Animatics_3D · Apr 06, 2014 at 08:32 AM

Hey You can Rename your mesh in Maya before export it to .obj,As follow..

  1. select your mesh in maya and go to outline and rename your mesh which you required .

  2. export it to .Obj .

you will get which you required

I am Attaching screen shots of maya and unity ,you can check it .alt text


rename-polygon.jpg (128.9 kB)
Comment
Add comment · Show 4 · 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 Hoeloe · Apr 06, 2014 at 09:09 AM 0
Share

You specify .obj here, does this apply for .fbx as well? A few of my models require features not supported by .obj.

avatar image Animatics_3D · Apr 06, 2014 at 03:59 PM 0
Share

Yes ,you can apply this with .fbx .

avatar image tmcthree · Aug 05, 2014 at 09:20 PM 0
Share

The solution sugested here didn't work for me. I've already renamed the mesh in the outliner and it is still called default in Unity. Also when I export as fbx, the mesh is named correctly. Am I missing something?

avatar image meat5000 ♦ · Aug 05, 2014 at 09:22 PM 1
Share

Just use FBX. Its the recommended format and I'm sure Unity likes to convert them all to FBX anyway. Don't quote me on that ~:P

avatar image
1

Answer by Olninyo · Jan 09, 2015 at 06:06 PM

ok, so I think I found a partial solution for this:

When exporting an .OBJ from Maya, in the export dialog box there are some options. alt text

If you turn on the 'Groups' option, export your mesh, and import into Unity you should find that the submesh has taken the name based on the hierarchy of your scene.

alt text

That doesnt allow you to name it separately from the mesh when theres only one mesh in the export but it may be different for exports with multiple submeshes.


unitysubmeshname.jpg (10.0 kB)
objsubmeshnamingfix.jpg (228.6 kB)
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 fat_flying_pigs · Sep 20, 2015 at 03:17 AM 0
Share

This works for me, using $$anonymous$$aya LT 2016

avatar image
0

Answer by $$anonymous$$ · May 30, 2017 at 08:32 PM

This has to do with the 'group' header inside the OBJ file. If the mesh is saved with groups, it will give each group a name and Unity will load those names inside the main OBJ in the Project view.

You can choose the option to save the mesh with Groups on in both Maya & Blender. Or you could manually inspect the OBJ file (open it in any text editor), and add a group name, e.g. here's a simple cube OBJ (Note the line starting with 'g' -- that's the group label):


v -0.500000 -0.500000 0.500000

v 0.500000 -0.500000 0.500000

v -0.500000 0.500000 0.500000

v 0.500000 0.500000 0.500000

v -0.500000 0.500000 -0.500000

v 0.500000 0.500000 -0.500000

v -0.500000 -0.500000 -0.500000

v 0.500000 -0.500000 -0.500000

g pCube1

f 1/1/1 2/2/2 4/4/3 3/3/4

f 3/3/5 4/4/6 6/6/7 5/5/8

f 5/5/9 6/6/10 8/8/11 7/7/12

f 7/7/13 8/8/14 2/10/15 1/9/16

f 2/2/17 8/11/18 6/12/19 4/4/20

f 7/13/21 1/1/22 3/3/23 5/14/24


If you save the above text as an OBJ file and load into Unity, it should load with the mesh object called 'pCube1' instead of 'default'

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

21 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

Related Questions

Maya import. 1 Answer

How to import a mesh NOT as a Prefab 2 Answers

Import mesh with submeshes from OBJ? 2 Answers

What is the best practice for character colliders? 1 Answer

problem importing animation+mesh maya 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