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
1
Question by jimver04 · Apr 13, 2016 at 01:33 PM · assetfileparsing

What is the .asset format specifications ?

Hi,

I want to write in javascript a parser for a unity game project. The scene is in text and there is no problem. However, the .asset files are in binary and I do not want to spent my whole project time to find a way to parse them. For a first task, I am interested on how to parse the terrain.asset file. Any idea?

BR, Dimitrios

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 Dave-Carlile · Apr 13, 2016 at 02:04 PM 0
Share

Curious why you want to do this?

avatar image jimver04 Dave-Carlile · Apr 14, 2016 at 05:04 AM 0
Share

I want to make a web editor for Unity3D. Just the basic staff for start. The web interface will be based on Three.js. If you save the three.js scene in Unity3d format then you can compile it for every platform.

avatar image peterwilli jimver04 · Apr 14, 2016 at 07:44 AM 0
Share

Share this idea to Unity and ask for a job to pursue this, I would use it xD

1 Reply

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

Answer by Immanuel-Scholz · Apr 13, 2016 at 02:02 PM

".asset" is used for a lot of different formats, most noticeable for Terrain data and scriptable custom assets (ScriptableObject). If you set your editor settings to "Force Text", most of the .asset files will be YAML text files.

AFAIK, Unity does not officially release the binary scheme of its data files - nor the structure of the YAML file. (probably so they can change it at will in even the minor updates)

So basically, you are out of luck.

However, one last note: There is a tool located under "unity install dir/Editor/Data/Tools/binary2text.exe" that can convert unity-binary files into text representations. Its not YAML text but some simple human readable txt format. So if you really want to reverse engineer their binary format, this might help. ;)

Comment
Add comment · Show 3 · 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 jimver04 · Apr 14, 2016 at 05:16 AM 0
Share

I 've used the "Force Text" but still the Terrain is in binary format. Luckily the binary2text.exe did the job. Now I am getting the Terrain.asset as text format. Thanks.

avatar image Immanuel-Scholz jimver04 · Apr 14, 2016 at 07:16 AM 0
Share

You can also launch Unity.exe in batch mode, have it call a specific function and then quit. So you could use Unity itself to parse some files and export them in an easier format.

Not the most performant way, of course.

avatar image jimver04 Immanuel-Scholz · Apr 14, 2016 at 08:59 AM 0
Share

I will exa$$anonymous$$e batch mode. I will need also the inverse of binary2text function because if I modified externally the terrain data as text (it is not an urgent feature though), I need to transform it back to binary terrain data.

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Managing Scenes and reusable code 1 Answer

[SOLVED] Compiled game size 1 Answer

Create JPG to HDD from Image In Assets-Folder 0 Answers

How import textures to UNITY with "DXF File" 2 Answers

How can I unload a single resource? 2 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