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 MountDoomTeam · Sep 14, 2012 at 05:28 PM · assetssaveexportproceduralobj

how to use EditorObjExporter .obj-saving-script from the wiki?

i've just tried the EditorObjExporter.cs to export a mesh visible in the player window. from http://wiki.unity3d.com/index.php?title=ObjExporter

i copied the script to Unity/Editor but i cant see anywhere an option called Custom>Export mesh?

where is "custom" supposed to appear, in edit menu?

/* Based on ObjExporter.cs, this "wrapper" lets you export to .OBJ directly from the editor menu.

This should be put in your "Editor"-folder. Use by selecting the objects you want to export, and select the appropriate menu item from "Custom->Export". Exported models are put in a folder called "ExportedObj" in the root of your Unity-project. Textures should also be copied and placed in the same folder. */

Comment
Add comment · Show 2
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 intrepidis · Nov 19, 2014 at 01:59 AM 0
Share

You could try looking at this answer: http://answers.unity3d.com/questions/27626/how-to-create-prefabs-from-editor-scripts.html#answer-835388

avatar image mattpowley · Aug 22, 2021 at 09:46 PM 0
Share

I had this issue, but once I put both the scripts described on the wiki page in the editor script it worked! You need both the wrapper class and the original exporter class in the editor folder

5 Replies

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

Answer by rhodnius · Sep 14, 2012 at 06:47 PM

link text

Try with this package :-)


objectexporter.zip (3.7 kB)
Comment
Add comment · Show 5 · 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 MountDoomTeam · Sep 14, 2012 at 06:55 PM 0
Share

Thanks so much it works! i'm confused if notepad++ fungled the file. perhaps i should post a link on the wiki to here in case its a tech issue.

avatar image rhodnius · Sep 14, 2012 at 06:58 PM 0
Share

You're welcome ;-)

avatar image shutyomouth · Sep 02, 2014 at 02:35 AM 0
Share

where do you put the files?

avatar image fc_arsenal_94 · Nov 24, 2014 at 03:49 AM 0
Share

sorry but i cant find where it export to?

avatar image ProgOrion · Oct 17, 2018 at 09:31 PM 0
Share

I also tried to use this script and even trying your package, but somehow the menu item doesn't show up in the File menu of Unity. I really don't know why. I'm still using Unity 5.6.3p4

Do you have any idea? :/

avatar image
1

Answer by rhodnius · Sep 14, 2012 at 05:48 PM

HelloZoomDomain,

Well, this should appear on the Unity main menu (the one that has "File", "Edit, "Assets" , etc), if the objectexporter script is on an "Editor" Folder it should appear already, you could try also close Unity and open it again to let it refresh the customs menu.

Also the "Editor" folder where the script it's placed on, have to be with the first letter in capital.

Hope this help,

Rhod,

Comment
Add comment · Show 5 · 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 rhodnius · Sep 14, 2012 at 06:08 PM 0
Share

well, it is very weird that id doesn't work, i have unity lastest version and used it on W7 and actuallyhave it on the menu and used it a lot to export objects.

$$anonymous$$aybe try it on a clean project, just to be sure ;-)

avatar image rhodnius · Sep 14, 2012 at 06:10 PM 0
Share

So, it is working now?

avatar image MountDoomTeam · Sep 14, 2012 at 06:16 PM 0
Share

It isnt working still, i just double checked it and restarted Unity 3 times. i'll see if unity has an enabler option for /Editor .cs scripts. brb

avatar image rhodnius · Sep 14, 2012 at 06:22 PM 0
Share

Ok, just in case, make sure that the name of the file of the script is exactly the name of the class of the Object exporter, in my case the class name is "EditorObjExporter", so the File name of the script is exactly that.

avatar image MountDoomTeam · Sep 14, 2012 at 06:37 PM 0
Share

Oh dam i presume it is running for you then. Yes i wrote EditorObjExporter.cs so i think there is somthing odd happening. i'll put the .CS in caps although i think it's not that!

avatar image
0

Answer by adaptive · Mar 22, 2013 at 11:20 AM

Hi, this works to get the "level" part of e.g. Snowbox ServerWorld1,

but it doesn't work for something like this Humpback Whale from the asset store:

https://www.assetstore.unity3d.com/#/content/3547

When I select the whale and do custom->export (any option) the output files are nearly empty.

Actually, first, the export feature says I have to select an object with a mesh filter. I'm pretty new, and can get confused as to what that entails exactly, but I added, in component->mesh->mesh filter, and also tried adding mesh rendered, and then the export feature does not complain, but, ya, as stated, the output files are nearly empty, and loading them in e.g. 3DS Max, it says "nothing to import".

Any tips? Thanks!

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 hike1 · Apr 28, 2015 at 03:54 PM

Humpback Whale Select the humpback whale in scene, and in inspector 'add component' mesh filter, then drag humpback_whale_exp1_0 MESH the thing with the square grid icon into mesh filter 'mesh' area, it will export to obj now. Still have no clue what a mesh filter is, there's on one on my washing machine water hose though. ;--]

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 mattpowley · Aug 19, 2021 at 03:37 PM

Make sure both of the files outlined in the wiki page are in the editor folder together. It did not work for me until they were both together. Once I moved them in the editor folder together the custom option on the menu bar showed up and I was able to export my .obj files.

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

17 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

Related Questions

Blender >> Unity... 1 Answer

How do I properly save a procedurally created mesh? 1 Answer

How to load 3d models into script as one object 0 Answers

Asset Export from Unity3d Version 4 into 3.5 1 Answer

Editor crash on all scenes and projects 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