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
2
Question by RickyAh · Mar 28, 2014 at 03:48 PM · assetserialization

How to re-serialize assets so they are stored as text?

In our Unity projects we set the Assets Serialization mode to Force Text so it plays well with our SVC.

From time to time an artists can generate an Unity package that contains assets and prefabs, so is easier for the rest of the team to share.

If that package is generated inside a project where the Asset Serialization Mode is not set to Force Text, the prefabs are stored as binary. So far so good.

The problem is that when we import the package into the project with Force Text enabled, those imported prefabs are not reserialized as text, and remain serialized in the binary format.

The only way to make the prefaba to reserialize in text format is, either to delete its meta file (bad idea), or to modify the prefab and then save it.

Reimporting the prefab does not work.

Does anyone encountered this problem and has a solution? Is there any way to force an asset to reserialize, even if it is using a script?

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 frarees · Mar 29, 2014 at 10:18 AM 0
Share

When I had to re-serialize assets to text, it worked straight away. Can you try it in an empty project with just some prefabs, to see how it works there for you?

avatar image RickyAh · Apr 01, 2014 at 09:12 AM 0
Share

The problem only happens when importing from a unitypackage. $$anonymous$$oving the assets to the Unity Assets folder works fine.

avatar image Dave-Hampson ♦♦ · Apr 04, 2014 at 11:27 AM 0
Share

Sounds like this is worth submitting as a bug.

1 Reply

· Add your reply
  • Sort: 
avatar image
4

Answer by dumaike · Nov 05, 2014 at 12:43 AM

I had this exact same problem. I found out that, after importing a package, you switch your project to "Force Binary" and then back to "Force Text" it converts all the binary assets that were imported over to text. Depending on how big your project is, this could take a while. I like to import the assets into an empty project, switch them to text, then export them again for our core project.

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 Morgenstern_1 · Jan 23, 2017 at 02:18 PM 0
Share

I'm having this issue too but sadly the "Force Binary" to "Force Text" approach doesn't seem to be working. If it helps anyone find a solution we're using Projeny to link packages of files rather than having them duplicated in each project. I suspect that's why the above isn't working for us.

avatar image Dave-Hampson ♦♦ · Jan 23, 2017 at 02:28 PM 0
Share

How about 'Force Binary', Save Project, 'Force Text', Save Project. ?

avatar image Morgenstern_1 Dave-Hampson ♦♦ · Jan 24, 2017 at 10:13 AM 1
Share

Ah ignore me, turns out it had converted everything correctly, I was just getting confused by the git large file storage.

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

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

Related Questions

Asset Serialization - what is "Mixed" 1 Answer

Custom assets give Missing (Mono Script) 0 Answers

Assistance needed with serialization, inheritance and scriptableobject 1 Answer

How to use XML Serialization to load custom asset types 3 Answers

How Is 'fileID' Generated For Classes Inside an External DLL? 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