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 Stanislav Pugach · Sep 03, 2010 at 08:12 AM · assetbundleserializationscriptableobject

How do I pass serialized ScriptableObjects between Unity projects?

I have two Unity projects, one that creates asset bundles, and another that consumes them. The problem is that I need to pass a TOC object (a list of other asset bundles and their contents) as well. Obviously, I pack it into a separate asset bundle and store that at a predetermined (hardcoded) location. But whe I get this asset bundle in another project, the main asset is null. The precise reason is not that hard to deduce: it seems that the ScriptableObject identifies itself for serialization with some kind of internal ID, and these IDs are not the same in the two projects.

So the question is: Is there a way to explicitly specify an association between the two classes in the two projects, so that I am able to pass the data in the aforementioned way, or do I have to write my own serialization (or replacement thereof)?

Comment
Add comment · Show 1
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 SONB · Apr 25, 2012 at 11:39 PM 0
Share

Having the same issue. I'm using ScriptableObjects as configuration files for my editor extension. Actually they should be loaded in every new project, but they aren't. Have you found a solution?

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Proclyon · Nov 16, 2010 at 02:45 PM

Have you considered doing a bypass? Try blocking the automated process of serialization by a conversion into any container or datatype that you can fit everything in, or by slushing it through the unity engine library , but a whole other story.

As far as bad idea's go I'm afraid you will be stuck with self made serialization. It's a lot of work but it's better than nothing. Sorry I can't supply you with much more, my knowledge on this is limited

Old old post btw, any news ? Did you get it working? If so, what did you do ?

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 yoyo · Dec 06, 2010 at 08:35 PM 0
Share

Self-made serialization could be built on the System.Xml namespace, so you don't actually need to roll much code, just a management layer, but not the serializer itself. I'd be interested in the results too, so let us know.

avatar image
0

Answer by Max Kaufmann · Dec 13, 2010 at 03:06 AM

Do they need to be two projects? Serialization is just the first wall you're going to run up against because the asset bundles are going to depend on undefined GUIDs.

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

1 Person is following this question.

avatar image

Related Questions

How can I save a deck of Cards (ScriptableObjects)? 0 Answers

Serializing specialized subclasses of generic classes not working 1 Answer

Saving players progress in ScriptableObject asset 1 Answer

Can’t serialize custom class variable in ScriptableObject.Or add instance of a class to a list with overridden method in custom editor. 1 Answer

AssetDatabase.LoadAssetAtPath() not working after any sort of project change. 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